crab/install.sh

18 lines
349 B
Bash
Raw Normal View History

2022-11-09 00:35:01 +00:00
#!/bin/bash
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Please run this as root"
exit
fi
# Copy executable to bin
2022-11-09 05:51:47 +00:00
cp ./target/release/crab /usr/bin/crab
2022-11-09 00:35:01 +00:00
chown root:root /bin/crab
chmod 6755 /bin/crab
# Set up config files
cp pam /etc/pam.d/crab
2022-11-09 05:51:47 +00:00
mkdir /usr/share/crab
cp conf /usr/share/crab/crab.conf
chmod 660 /usr/share/crab/crab.conf