headscale-ui/docker/production/scripts/2-initialise.sh
Christopher Bisset d398ac8399 dockerfile updates
2022-07-27 16:29:47 +10:00

16 lines
No EOL
363 B
Bash

#!/bin/sh
#----#
# placeholder for testing
# while true; do sleep 1; done
#----#
# check if /data/Caddyfile exists, copy across if not
if [ ! -f /data/Caddyfile ];
then
echo "no Caddyfile detected, copying across default config"
cp /staging/Caddyfile /data/Caddyfile
fi
echo "Starting Caddy"
/usr/sbin/caddy run --adapter caddyfile --config /data/Caddyfile