diff --git a/root/etc/cont-init.d/03-format-caddyfile b/root/etc/cont-init.d/03-format-caddyfile new file mode 100644 index 00000000..52edb5ba --- /dev/null +++ b/root/etc/cont-init.d/03-format-caddyfile @@ -0,0 +1,9 @@ +#!/command/with-contenv bash +# shellcheck shell=bash + +set -e + +umask "${UMASK}" + +"/usr/local/bin/caddy" fmt "${CONFIG_DIR}/Caddyfile" --overwrite +chown hotio:hotio "${CONFIG_DIR}/Caddyfile"