docker-caddyproxy/compile_and_run.sh
2016-05-26 17:08:41 +02:00

7 lines
326 B
Bash

#!/bin/sh
BASEPATH="/data"
# http://stackoverflow.com/questions/8183191/concatenating-files-and-insert-new-line-in-between-files
sed -e '$s/$/\n/' -s $BASEPATH/caddy.d/*.caddy > $BASEPATH/Caddyfile
exec /opt/caddy/caddy -agree=${AGREE_TOS} -email="${DEFAULT_EMAIL}" -conf="${BASEPATH}/Caddyfile" -log="${BASEPATH}/caddy.log"