caddy-retired/scripts/convert
2020-10-26 13:34:42 -07:00

4 lines
171 B
Bash
Executable file

#!/bin/bash
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
CONF=${1:-caddy}
$DIR/bin/caddy adapt --config $DIR/conf/$CONF.conf --adapter caddyfile > caddy.json