2020-05-12 14:51:19 -07:00
|
|
|
#!/bin/bash
|
2020-10-26 13:34:42 -07:00
|
|
|
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
|
2020-05-18 11:53:40 -07:00
|
|
|
CONF=${1:-caddy}
|
2020-10-26 13:34:42 -07:00
|
|
|
$DIR/bin/caddy adapt --config $DIR/conf/$CONF.conf --adapter caddyfile > caddy.json
|