summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-03-25 14:11:30 -0400
committerHolger Levsen <holger@layer-acht.org>2016-03-25 14:11:30 -0400
commitb2144f3e89254a192d0accefe3a3d25168056318 (patch)
tree19409a95e73259638d48c146abf1ab51e61a01f9
parent43901e4621cf29e283d266589848e86d45c03d08 (diff)
downloadjenkins.debian.net-b2144f3e89254a192d0accefe3a3d25168056318.tar.xz
reproducible debian: only invoke ntpdate if installed
-rwxr-xr-xupdate_jdn.sh4
1 files 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