From 921c0badb862901cf70e9e1e4ea29d9e71435b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Fri, 30 Aug 2019 08:51:16 +0200 Subject: [PATCH] evocheck : explicit PATH By default the PATH set by crontab is "/usr/bin:/bin" so all sbin commands are out of scope. --- evocheck/templates/crontab.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/evocheck/templates/crontab.j2 b/evocheck/templates/crontab.j2 index fdd07649..8c40667e 100644 --- a/evocheck/templates/crontab.j2 +++ b/evocheck/templates/crontab.j2 @@ -1,4 +1,5 @@ # {{ ansible_managed }} +PATH=/usr/sbin:/usr/bin:/sbin:/bin 33 1 1 * * root /usr/share/scripts/evocheck.sh 33 1 2-31 * * root /usr/share/scripts/evocheck.sh --cron