caddy-retired/scripts/own

6 lines
185 B
Bash
Executable File

#!/bin/bash
# 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