mirror of
https://github.com/mrrfv/cloudflare-gateway-pihole-scripts.git
synced 2026-11-16 19:37:01 +00:00
13 lines
377 B
Shell
Executable file
13 lines
377 B
Shell
Executable file
#!/bin/sh
|
|
|
|
# Install the crontab only when this container is actually going to run cron.
|
|
# busybox crontab also refuses to run as a non-root user, so this keeps it
|
|
# from erroring on a non-root one-shot command.
|
|
case "$1" in
|
|
crond | /usr/sbin/crond)
|
|
echo "$CRON_SCHEDULE /usr/local/bin/npm start --prefix /app/" | crontab -
|
|
echo "Starting crond..."
|
|
;;
|
|
esac
|
|
|
|
"$@"
|