Răsfoiți Sursa

Ensure ntpdate is available before install

Kristan Kenney 7 ani în urmă
părinte
comite
626e24758a
2 a modificat fișierele cu 14 adăugiri și 0 ștergeri
  1. 7 0
      install/hst-install-debian.sh
  2. 7 0
      install/hst-install-ubuntu.sh

+ 7 - 0
install/hst-install-debian.sh

@@ -281,6 +281,13 @@ apt-get -qq update
 # Creating backup directory
 # Creating backup directory
 mkdir -p $hst_backups
 mkdir -p $hst_backups
 
 
+# Checking ntpdate
+if [ ! -e '/usr/sbin/ntpdate' ]; then
+    echo "Install missing ntpdate..."
+    apt-get -y install ntpdate >> $LOG
+    check_result $? "Can't install ntpdate"
+fi
+
 # Checking wget
 # Checking wget
 if [ ! -e '/usr/bin/wget' ]; then
 if [ ! -e '/usr/bin/wget' ]; then
     echo "Install missing wget..."
     echo "Install missing wget..."

+ 7 - 0
install/hst-install-ubuntu.sh

@@ -266,6 +266,13 @@ apt-get -qq update
 # Creating backup directory
 # Creating backup directory
 mkdir -p $hst_backups
 mkdir -p $hst_backups
 
 
+# Checking ntpdate
+if [ ! -e '/usr/sbin/ntpdate' ]; then
+    echo "Install missing ntpdate..."
+    apt-get -y install ntpdate >> $LOG
+    check_result $? "Can't install ntpdate"
+fi
+
 # Checking wget
 # Checking wget
 if [ ! -e '/usr/bin/wget' ]; then
 if [ ! -e '/usr/bin/wget' ]; then
     echo "Install missing wget..."
     echo "Install missing wget..."