[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: only invoke ntpdate if installed
Holger Levsen
holger at moszumanska.debian.org
Fri Mar 25 18:11:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit b2144f3e89254a192d0accefe3a3d25168056318
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Mar 25 14:11:30 2016 -0400
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 0ada570..2d0f061 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list