summaryrefslogtreecommitdiff
path: root/deployments/source/uninstall.sh
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-11-19 17:37:56 +0000
committertylermurphy534 <tylermurphy534@gmail.com>2022-11-19 17:37:56 +0000
commitce6af95b74106d65c3d12f745d215732076562b9 (patch)
tree6f6c2ef19b93c80b9cc4567a4a94ce3621ff8eb4 /deployments/source/uninstall.sh
parentupdate aur depends (diff)
parentfix install file part 2 (diff)
downloadcrab-ce6af95b74106d65c3d12f745d215732076562b9.tar.gz
crab-ce6af95b74106d65c3d12f745d215732076562b9.tar.bz2
crab-ce6af95b74106d65c3d12f745d215732076562b9.zip
Merge pull request '0.6.0' (#1) from dev into main
Reviewed-on: https://g.tylerm.dev/tylermurphy534/crab/pulls/1
Diffstat (limited to 'deployments/source/uninstall.sh')
-rwxr-xr-xdeployments/source/uninstall.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/deployments/source/uninstall.sh b/deployments/source/uninstall.sh
new file mode 100755
index 0000000..cf7ade8
--- /dev/null
+++ b/deployments/source/uninstall.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [[ $(/usr/bin/id -u) -ne 0 ]]; then
+ echo "Please run this as root"
+ exit
+fi
+
+# Delete crab files
+rm /etc/pam.d/crab
+rm /usr/bin/crab
+rm -fr /usr/share/crab