caddy-retired/scripts/run

8 lines
259 B
Plaintext
Raw Normal View History

2020-05-12 14:51:19 -07:00
#!/bin/bash
# one off run command for testing without systemd
2020-10-26 13:34:42 -07:00
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
CONF=${1:-caddy}
$DIR/env/AWS.env
2020-05-12 14:51:19 -07:00
sudo -E /usr/bin/env | grep AWS
sudo -E $DIR/caddy run --config $DIR/conf/$CONF.conf --adapter caddyfile