diff options
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 |