From ed1ce47c6bccf5e91a6a890a79002a57a2fe22c8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 8 Mar 2019 09:09:20 -0600 Subject: [PATCH] Create uninstall-filewatcher.sh --- uninstall-filewatcher.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 uninstall-filewatcher.sh diff --git a/uninstall-filewatcher.sh b/uninstall-filewatcher.sh new file mode 100755 index 0000000..8d1a4a1 --- /dev/null +++ b/uninstall-filewatcher.sh @@ -0,0 +1,28 @@ +#!/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)" + + +if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}" +else APTFUNC="${ATYPE}" +fi +echo "" +echo -e "${idsCL[LightGreen]}Filewatcher Removal Script${idsCL[Default]}" + + +do_with_root set -eu +rm -f /usr/local/bin/filewatcher +rm -Rf /opt/filewatcher + +IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`" +if [ "$IDSSYSF" = 2 ]; then + rm -Rf /opt/idssys/defaults +fi + +echo "" +echo -e "${idsCL[LightRed]}Filewatcher has been Removed${idsCL[Default]}" +echo "" + +exit 0 \ No newline at end of file