summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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