All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32s
20 lines
355 B
Bash
20 lines
355 B
Bash
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
SCHEDULE="${SCHEDULE:-* * * * *}"
|
|
CRON_LOG_LEVEL="${CRON_LOG_LEVEL:-2}"
|
|
CRON_FILE="/etc/crontabs/root"
|
|
|
|
printf '%s /usr/local/bin/nsupdate.sh\n' "${SCHEDULE}" > "${CRON_FILE}"
|
|
|
|
if [ "$#" -gt 0 ]; then
|
|
if [ "$1" = "crond" ]; then
|
|
shift
|
|
exec crond -l "${CRON_LOG_LEVEL}" "$@"
|
|
fi
|
|
|
|
exec "$@"
|
|
fi
|
|
|
|
exec crond -l "${CRON_LOG_LEVEL}" -f |