1
0
Fork 0
mirror of https://github.com/yavook/kiwi-cron.git synced 2024-11-24 08:23:00 +00:00
This commit is contained in:
Jörn-Michael Miehe 2022-03-01 18:47:44 +01:00
parent 7a5d3de9e4
commit efc9fbf803

View file

@ -1,5 +1,8 @@
#!/bin/sh
# commands
crond_exe="$(command -v crond)"
# set timezone
export TZ="${TZ:-Etc/UTC}"
ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime"
@ -22,7 +25,6 @@ shift "$(( OPTIND - 1 ))"
# CLI arguments
rc_executable="${1}"
if [ -n "${rc_dry_run}" ]; then
# verbose, dry run
set -x
@ -39,6 +41,6 @@ fi
| crontab -
# hand over to crond
exec crond -fd 8
exec "${crond_exe}" -fd 8
exit 0