Fix some names

This commit is contained in:
southerntofu 2020-04-28 11:54:52 +02:00
parent 75a15dec05
commit db720258ac
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ TRIGGER=./triggers/git-build
DATABASE=./databases/unix
# Autodetect forgehook user if it's already setup
owner=$(find /usr/local/bin/forgehook-db -maxdepth 0 -printf '%u')
owner=$(find /usr/local/bin/forgehook -maxdepth 0 -printf '%u')
if [[ $? = 0 ]]; then
echo "[setup.sh] Found existing setup owned by user $owner. Using this user."
else
@ -48,7 +48,7 @@ sudo cp bin/forgehook $DEST
sudo chown "$owner:$owner" $DEST/forgehook
# Only $owner can execute
sudo cp $DATABASE $DEST
sudo cp $DATABASE $DEST/forgehook-db
sudo chown "$owner:$owner" $DEST/forgehook-db
sudo chmod 744 $DEST/forgehook-db