浏览代码

fix ntp date permission.

Raphael Schneeberger 7 年之前
父节点
当前提交
17034b401d
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      install/hst-install-debian.sh
  2. 2 2
      install/hst-install-ubuntu.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -716,7 +716,7 @@ echo "/usr/sbin/nologin" >> /etc/shells
 # Configuring NTP
 echo '#!/bin/sh' > /etc/cron.daily/ntpdate
 echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
-chmod 775 /etc/cron.daily/ntpdate
+chmod 755 /etc/cron.daily/ntpdate
 ntpdate -s pool.ntp.org
 
 # Setup rssh

+ 2 - 2
install/hst-install-ubuntu.sh

@@ -697,8 +697,8 @@ fi
 # Configuring NTP
 echo '#!/bin/sh' > /etc/cron.daily/ntpdate
 echo "$(which ntpdate) -s ntp.ubuntu.com" >> /etc/cron.daily/ntpdate
-chmod 775 /etc/cron.daily/ntpdate
-ntpdate -s ntp.ubuntu.com
+chmod 755 /etc/cron.daily/ntpdate
+ntpdate -s pool.ntp.org
 
 # Adding rssh
 if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then