caddy-retired/scripts/own

6 lines
185 B
Plaintext
Raw Normal View History

#!/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
sudo chown -R caddy:caddy $DIR
sudo chmod g+rwx -R $DIR