aboutsummaryrefslogtreecommitdiff
path: root/uninstall.sh
diff options
context:
space:
mode:
authorEmil2023-08-04 09:13:47 -0600
committerEmil2023-08-04 09:13:47 -0600
commit935243d8b4ea992c50315f0c8fcb300365a5762d (patch)
treec22d800773997b7b267d5d6cba5931f22ee2be64 /uninstall.sh
downloademil-probotic-master.tar.xz
emil-probotic-master.tar.zst
Initial commitHEADmaster
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