aboutsummaryrefslogtreecommitdiff
path: root/uninstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'uninstall.sh')
-rw-r--r--uninstall.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100644
index 0000000..ac13841
--- /dev/null
+++ b/uninstall.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# doubles as a cleanup script
+DIR=$(dirname $(readlink -f "$0"))
+cd $DIR
+TARGET=${TARGET-/opt/probotic}
+userdel probotic
+rm -rf $TARGET