diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-03-25 14:11:30 -0400 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-03-25 14:11:30 -0400 |
commit | b2144f3e89254a192d0accefe3a3d25168056318 (patch) | |
tree | 19409a95e73259638d48c146abf1ab51e61a01f9 | |
parent | 43901e4621cf29e283d266589848e86d45c03d08 (diff) | |
download | jenkins.debian.net-b2144f3e89254a192d0accefe3a3d25168056318.tar.xz |
reproducible debian: only invoke ntpdate if installed
-rwxr-xr-x | update_jdn.sh | 4 |
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 |