mirror of
https://github.com/yavook/kiwi-cron.git
synced 2024-11-21 23:13:00 +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
|
#!/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
|
Loading…
Reference in a new issue