Browse Source

CentOS -> rhel

Ernesto Nicolás Carrea 5 years ago
parent
commit
1c2e88cd23
1 changed files with 2 additions and 2 deletions
  1. 2 2
      install/hst-install-centos.sh

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

@@ -802,12 +802,12 @@ service iptables stop
 service firewalld stop >/dev/null 2>&1
 service firewalld stop >/dev/null 2>&1
 
 
 # Configuring NTP synchronization
 # Configuring NTP synchronization
-if [ "$codename" = "CentOS_7" ]; then
+if [ "$codename" = "rhel_7" ]; then
     echo '#!/bin/sh' > /etc/cron.daily/ntpdate
     echo '#!/bin/sh' > /etc/cron.daily/ntpdate
     echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
     echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
     chmod 775 /etc/cron.daily/ntpdate
     chmod 775 /etc/cron.daily/ntpdate
     ntpdate -s pool.ntp.org
     ntpdate -s pool.ntp.org
-elif [ "$codename" = "CentOS_8" ]; then
+elif [ "$codename" = "rhel_7" ]; then
     systemctl enable --now chronyd
     systemctl enable --now chronyd
 fi
 fi