From 6afc4b82c2b064a15d1707cf293487fd4544be2f Mon Sep 17 00:00:00 2001 From: Daniel Heule Date: Tue, 14 Jan 2014 09:47:54 +0100 Subject: [PATCH] __cron should replace entrys with his id --- cdist/conf/type/__cron/explorer/entry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__cron/explorer/entry b/cdist/conf/type/__cron/explorer/entry index c3bf02d2..15d9bdba 100644 --- a/cdist/conf/type/__cron/explorer/entry +++ b/cdist/conf/type/__cron/explorer/entry @@ -22,4 +22,4 @@ name="$__object_name" user="$(cat "$__object/parameter/user")" -crontab -u $user -l 2>/dev/null | grep "# $name\$" || true +crontab -u $user -l 2>/dev/null | grep "# $name\$" | head -n 1 || true