Updated docker File
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32s
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
#! /bin/sh
|
||||
#!/bin/sh
|
||||
|
||||
echo "${SCHEDULE} sh nsupdate.sh" >> /etc/crontabs/root
|
||||
crond -l 2 -f > /dev/stdout 2> /dev/stderr &
|
||||
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
|
||||
Reference in New Issue
Block a user