caddy-retired/scripts/newconf

5 lines
135 B
Bash
Executable File

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