summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinstall.sh (renamed from build.sh)9
1 files changed, 2 insertions, 7 deletions
diff --git a/build.sh b/install.sh
index b9e3c57..8cbb06c 100755
--- a/build.sh
+++ b/install.sh
@@ -5,12 +5,6 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
exit
fi
-# Make sure rust is able to build as root
-rustup default stable
-
-# Build crab
-cargo build --release
-
# Copy executable to bin
cp ./target/release/crab /bin/crab
chown root:root /bin/crab
@@ -18,4 +12,5 @@ chmod 6755 /bin/crab
# Set up config files
cp pam /etc/pam.d/crab
-cp -n conf /etc/crab.conf \ No newline at end of file
+cp -n conf /etc/crab.conf
+chmod 660 /etc/crab.conf