caddy-retired/scripts/newconf

6 lines
158 B
Plaintext
Raw Normal View History

#!/bin/bash
2020-10-26 13:34:42 -07:00
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
CONF=${1:-caddy}
touch $DIR/conf/$CONF.conf
sudo chown caddy:caddy $DIR/conf/$CONF.conf