caddy-retired/scripts/newconf

6 lines
158 B
Bash
Executable File

#!/bin/bash
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
CONF=${1:-caddy}
touch $DIR/conf/$CONF.conf
sudo chown caddy:caddy $DIR/conf/$CONF.conf