forked from ungleich-public/cdist
Fix to remove cronjobs when the cronjob expression did not match.
This commit is contained in:
parent
87f30b6053
commit
e5d86ffc93
1 changed files with 6 additions and 2 deletions
|
@ -42,8 +42,12 @@ fi
|
||||||
mkdir "$__object/files"
|
mkdir "$__object/files"
|
||||||
echo "$entry" > "$__object/files/entry"
|
echo "$entry" > "$__object/files/entry"
|
||||||
|
|
||||||
|
if [ -s "$__object/explorer/entry" ]; then
|
||||||
if diff -q "$__object/files/entry" "$__object/explorer/entry" >/dev/null; then
|
if diff -q "$__object/files/entry" "$__object/explorer/entry" >/dev/null; then
|
||||||
state_is=present
|
state_is=present
|
||||||
|
else
|
||||||
|
state_is=modified
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
state_is=absent
|
state_is=absent
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue