diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-08 22:07:02 -0500 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-08 22:07:02 -0500 |
commit | c0f8085da8b79fc448bb6c1d7f1875228c42d5b0 (patch) | |
tree | 7e0a7a04cf5eda86befb02c73bddac3da4715b72 /install.sh | |
parent | fix non root tamper persist files (diff) | |
download | crab-c0f8085da8b79fc448bb6c1d7f1875228c42d5b0.tar.gz crab-c0f8085da8b79fc448bb6c1d7f1875228c42d5b0.tar.bz2 crab-c0f8085da8b79fc448bb6c1d7f1875228c42d5b0.zip |
aur support
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..8cbb06c --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ $(/usr/bin/id -u) -ne 0 ]]; then + echo "Please run this as root" + exit +fi + +# Copy executable to bin +cp ./target/release/crab /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 |