Skip to content

Commit

Permalink
Use docker secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
xZero707 committed Oct 28, 2024
1 parent afc0d58 commit 8f70c88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/svc-crond/run
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/command/with-contenv bash
# shellcheck shell=bash

# crond main
# svc-crond main
main() {
# This will prepend service name to all output from here
exec > >(while read line; do echo "[crond] ${line}"; done) 2>&1
exec > >(while read line; do echo "[svc-crond] ${line}"; done) 2>&1

if [[ "${CRON_ENABLED}" == "false" || "${CRON_ENABLED}" == "0" ]]
then
Expand All @@ -13,6 +13,6 @@ main() {
fi

echo "Starting cron daemon"
/usr/sbin/crond -f -l 2
s6-envdir /run/secrets_normalized /usr/sbin/crond -f -l 2
}
main

0 comments on commit 8f70c88

Please sign in to comment.