ignore "no crontab for ..." message
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
5c70018411
commit
dee266aca0
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ user="$(cat "$__object/parameter/user")"
|
|||
prefix="#cdist:__cron/$name"
|
||||
suffix="#/cdist:__cron/$name"
|
||||
|
||||
crontab -u $user -l | awk -v prefix="$prefix" -v suffix="$suffix" '
|
||||
crontab -u $user -l 2>/dev/null | awk -v prefix="$prefix" -v suffix="$suffix" '
|
||||
{
|
||||
if (index($0,prefix)) {
|
||||
triggered=1
|
||||
|
|
Loading…
Reference in a new issue