2020-05-18 07:54:51 -07:00
|
|
|
#!/bin/bash
|
2020-10-26 13:34:42 -07:00
|
|
|
# reset ownership if need be. User must be in caddy group
|
|
|
|
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
|
2020-10-27 10:09:20 -07:00
|
|
|
echo setting ownership and mode on $DIR
|
2020-10-26 13:34:42 -07:00
|
|
|
sudo chown -R caddy:caddy $DIR
|
2020-10-27 10:09:20 -07:00
|
|
|
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
|