caddy-retired/scripts/own
David Kebler 87d4316e62 moved all scripts to scripts directory and refactored accordingly
somewhat working example site with conf file
2020-10-27 10:09:20 -07:00

11 lines
385 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/caddy
sudo chmod ug+x -R $DIR/bin
sudo chmod ug+x -R $DIR/build/bin