diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-09 00:51:47 -0500 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-09 00:51:47 -0500 |
commit | f36e11177342206419f22e46d7e121f0731cce9a (patch) | |
tree | 8248d3a3ad38071c75f9a5ac25b9347f2cb89a89 /uninstall.sh | |
parent | aur support (diff) | |
download | crab-f36e11177342206419f22e46d7e121f0731cce9a.tar.gz crab-f36e11177342206419f22e46d7e121f0731cce9a.tar.bz2 crab-f36e11177342206419f22e46d7e121f0731cce9a.zip |
fix session pid, add uninstall sh file
Diffstat (limited to 'uninstall.sh')
-rw-r--r-- | uninstall.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..f6cba7f --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ $(/usr/bin/id -u) -ne 0 ]]; then + echo "Please run this as root" + exit +fi + +# Delete crab files +rm /usr/bin/crab +chown root:root /bin/crab +chmod 6755 /bin/crab + +# Set up config files +cp pam /etc/pam.d/crab +cp -n conf /etc/crab.conf +chmod 660 /etc/crab.conf |