From ff1f1b4e44aee6016986b78ab717c2c0fd9fbcac Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 11 Mar 2022 19:23:24 -0600 Subject: [PATCH] Create uninstall-dsmon.sh --- uninstall-dsmon.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 uninstall-dsmon.sh diff --git a/uninstall-dsmon.sh b/uninstall-dsmon.sh new file mode 100755 index 0000000..b4e2f13 --- /dev/null +++ b/uninstall-dsmon.sh @@ -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 \ No newline at end of file