1
0
Fork 0
mirror of https://github.com/yavook/kiwi-cron.git synced 2024-11-21 23:13: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 #!/bin/sh
# commands
crond_exe="$(command -v crond)"
# set timezone # set timezone
export TZ="${TZ:-Etc/UTC}" export TZ="${TZ:-Etc/UTC}"
ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime"
@ -22,7 +25,6 @@ shift "$(( OPTIND - 1 ))"
# CLI arguments # CLI arguments
rc_executable="${1}" rc_executable="${1}"
if [ -n "${rc_dry_run}" ]; then if [ -n "${rc_dry_run}" ]; then
# verbose, dry run # verbose, dry run
set -x set -x
@ -39,6 +41,6 @@ fi
| crontab - | crontab -
# hand over to crond # hand over to crond
exec crond -fd 8 exec "${crond_exe}" -fd 8
exit 0 exit 0