From 0443572477787936df9561371be45a038839f3e2 Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Fri, 11 Nov 2022 15:16:37 -0500 Subject: 0.0.6 --- deployments/source/install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 deployments/source/install.sh (limited to 'deployments/source/install.sh') diff --git a/deployments/source/install.sh b/deployments/source/install.sh new file mode 100755 index 0000000..5b95a83 --- /dev/null +++ b/deployments/source/install.sh @@ -0,0 +1,21 @@ +#!/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 /usr/bin/crab +chown root:root /bin/crab +chmod 4755 /bin/crab + +# Set up config files +cp pam /etc/pam.d/crab +chmod 600 /etc/pam.d/crab + +mkdir /usr/share/crab +chmod 644 /usr/share/crab + +cp conf /usr/share/crab/crab.conf +chmod 644 /usr/share/crab/crab.conf -- cgit v1.2.3-freya