mirror of
https://github.com/yavook/kiwi-cron.git
synced 2024-11-21 15:03:01 +00:00
format
This commit is contained in:
parent
7a5d3de9e4
commit
efc9fbf803
1 changed files with 4 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue