Skip to content

Commit

Permalink
format caddyfile on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Aug 25, 2023
1 parent 2b48124 commit ff36d1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions root/etc/cont-init.d/03-format-caddyfile
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ff36d1a

Please sign in to comment.