Skip to content

Commit 17034b4

Browse files
committed
fix ntp date permission.
1 parent 8777938 commit 17034b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ echo "/usr/sbin/nologin" >> /etc/shells
716716
# Configuring NTP
717717
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
718718
echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
719-
chmod 775 /etc/cron.daily/ntpdate
719+
chmod 755 /etc/cron.daily/ntpdate
720720
ntpdate -s pool.ntp.org
721721

722722
# Setup rssh

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,8 @@ fi
697697
# Configuring NTP
698698
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
699699
echo "$(which ntpdate) -s ntp.ubuntu.com" >> /etc/cron.daily/ntpdate
700-
chmod 775 /etc/cron.daily/ntpdate
701-
ntpdate -s ntp.ubuntu.com
700+
chmod 755 /etc/cron.daily/ntpdate
701+
ntpdate -s pool.ntp.org
702702

703703
# Adding rssh
704704
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then

0 commit comments

Comments
 (0)