caddy-retired/scripts/newconf
David Kebler 87d4316e62 moved all scripts to scripts directory and refactored accordingly
somewhat working example site with conf file
2020-10-27 10:09:20 -07:00

5 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