From b2144f3e89254a192d0accefe3a3d25168056318 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 25 Mar 2016 14:11:30 -0400 Subject: reproducible debian: only invoke ntpdate if installed --- update_jdn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_jdn.sh b/update_jdn.sh index 0ada5703..2d0f0618 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -35,8 +35,8 @@ explain "$(date) - begin deployment update." # run update at current date case $HOSTNAME in profitbricks-build5-amd64|profitbricks-build6-i386) - # set correct date - sudo ntpdate -b de.pool.ntp.org + # set correct date (if ntpdate is installed) + [ ! -f /usr/sbin/ntpdate ] || sudo ntpdate -b de.pool.ntp.org ;; *) ;; esac -- cgit v1.2.3-70-g09d2