diff --git a/libexec/kiwi-cron/run_cron b/libexec/kiwi-cron/run_cron index 8bfe7eb..826eb93 100755 --- a/libexec/kiwi-cron/run_cron +++ b/libexec/kiwi-cron/run_cron @@ -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 \ No newline at end of file