diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-19 17:37:56 +0000 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-19 17:37:56 +0000 |
commit | ce6af95b74106d65c3d12f745d215732076562b9 (patch) | |
tree | 6f6c2ef19b93c80b9cc4567a4a94ce3621ff8eb4 /deployments/source/install.sh | |
parent | update aur depends (diff) | |
parent | fix install file part 2 (diff) | |
download | crab-ce6af95b74106d65c3d12f745d215732076562b9.tar.gz crab-ce6af95b74106d65c3d12f745d215732076562b9.tar.bz2 crab-ce6af95b74106d65c3d12f745d215732076562b9.zip |
Merge pull request '0.6.0' (#1) from dev into main
Reviewed-on: https://g.tylerm.dev/tylermurphy534/crab/pulls/1
Diffstat (limited to 'deployments/source/install.sh')
-rwxr-xr-x | deployments/source/install.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/deployments/source/install.sh b/deployments/source/install.sh new file mode 100755 index 0000000..b488693 --- /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 /usr/bin/crab +chmod 4755 /usr/bin/crab + +# Set up config files +cp ./config/pam /etc/pam.d/crab +chmod 600 /etc/pam.d/crab + +mkdir /usr/share/crab +chmod 644 /usr/share/crab + +cp ./config/default /usr/share/crab/crab.conf +chmod 644 /usr/share/crab/crab.conf |