Merge pull request #1598 from ioannidesalex/patch-42

NTP server modification
This commit is contained in:
Anton Reutov 2018-06-01 14:53:19 +02:00 committed by GitHub
commit 55f7598d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -678,9 +678,9 @@ echo "/usr/sbin/nologin" >> /etc/shells
# NTP Sync
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
echo "$(which ntpdate) -s ntp.ubuntu.com" >> /etc/cron.daily/ntpdate
chmod 775 /etc/cron.daily/ntpdate
ntpdate -s pool.ntp.org
ntpdate -s ntp.ubuntu.com
# Setup rssh
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then