From d277acf2ad787e577442c729cd1224d9df5723ae Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 25 Jan 2017 14:19:00 +0100 Subject: [PATCH] set PATH in ntp-restart-if-required so we can find service(8) --- modules/ntp/files/ntp-restart-if-required | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ntp/files/ntp-restart-if-required b/modules/ntp/files/ntp-restart-if-required index f541c06a3..bb15f842c 100755 --- a/modules/ntp/files/ntp-restart-if-required +++ b/modules/ntp/files/ntp-restart-if-required @@ -1,5 +1,7 @@ #!/bin/bash +PATH=/usr/sbin:/usr/bin:/sbin:/bin + [ -e /usr/lib/nagios/plugins/dsa-check-timedatectl ] || exit /usr/lib/nagios/plugins/dsa-check-timedatectl -s >/dev/null 2>/dev/null -- 2.20.1