From d900a70faf79b43f9235299b5a22daacbec19c2b Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 10 Sep 2018 10:04:21 +0200 Subject: [PATCH] etc-git: status cron job is run by root --- etc-git/templates/etc-git-status.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc-git/templates/etc-git-status.j2 b/etc-git/templates/etc-git-status.j2 index f4033a86..e1696c54 100644 --- a/etc-git/templates/etc-git-status.j2 +++ b/etc-git/templates/etc-git-status.j2 @@ -1,4 +1,4 @@ # {{ ansible_managed }} -@hourly who > /dev/null || git --git-dir=/etc/.git --work-tree=/etc status --short -21 21 * * * git --git-dir=/etc/.git --work-tree=/etc status --short +@hourly root who > /dev/null || git --git-dir=/etc/.git --work-tree=/etc status --short +21 21 * * * root git --git-dir=/etc/.git --work-tree=/etc status --short