e24be310ae
systemd service install now uses sed to insert the repo directory into the call service script before deploying. renamed install script to fetch as to avoid confusion as it fetches the basic binary.
10 lines
355 B
Bash
Executable file
10 lines
355 B
Bash
Executable file
#!/bin/bash
|
|
# reset ownership if need be. User must be in caddy group
|
|
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
|
|
echo setting ownership and mode on $DIR
|
|
sudo chown -R caddy:caddy $DIR
|
|
sudo chmod -R ug=rw,o=r,a+X $DIR
|
|
sudo chmod ug+x -R $DIR/scripts
|
|
sudo chmod ug+x -R $DIR/env
|
|
sudo chmod ug+x -R $DIR/bin
|
|
sudo chmod ug+x -R $DIR/build/bin
|