forked from ungleich-public/cdist
crontab -l should be allowed to fail with "no crontab" without stopping exec
This commit is contained in:
parent
459ea4cfd9
commit
d59953642e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ if [ "$state_is" != "$state_should" ]; then
|
||||||
present)
|
present)
|
||||||
cat << DONE
|
cat << DONE
|
||||||
tmp=\$($mktemp)
|
tmp=\$($mktemp)
|
||||||
crontab -u $user -l > \$tmp
|
crontab -u $user -l > \$tmp || true
|
||||||
cat >> \$tmp << EOC
|
cat >> \$tmp << EOC
|
||||||
$(cat "$__object/parameter/entry")
|
$(cat "$__object/parameter/entry")
|
||||||
EOC
|
EOC
|
||||||
|
|
Loading…
Reference in a new issue