Create uninstall-dsmon.sh

This commit is contained in:
2022-03-11 19:23:24 -06:00
parent 6223f4d077
commit ff1f1b4e44

31
uninstall-dsmon.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# Wrapper script for install, for easier execution via URL.
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
#source /opt/idssys/defaults/colors.inc
#source /opt/idssys/defaults/default.inc
echo ""
echo -e "${idsCL[LightGreen]}DSmon Removal Script${idsCL[Default]}"
do_with_root set -eu
do_with_root rm -f /usr/local/bin/dsmon
do_with_root rm -Rf /opt/idssys/dsmon
if [ -d "/opt/idssys" ]; then
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
if [ "$IDSSYSF" = 2 ]; then
do_with_root rm -Rf /opt/idssys/defaults
fi
fi
echo ""
echo -e "${idsCL[LightRed]}DSmon has been Removed${idsCL[Default]}"
echo ""
exit 0