From: Peter Palfrader Date: Wed, 25 Jan 2017 13:19:00 +0000 (+0100) Subject: set PATH in ntp-restart-if-required so we can find service(8) X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=d277acf2ad787e577442c729cd1224d9df5723ae;p=mirror%2Fdsa-puppet.git set PATH in ntp-restart-if-required so we can find service(8) --- 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