فهرست منبع

Merge pull request #912 from hestiacp/fix/2020-07_missing-curl

Add a validation if curl is already installed, if not, do it.
Raphael Schneeberger 5 سال پیش
والد
کامیت
560be4481d
2فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 7 0
      install/hst-install-debian.sh
  2. 7 0
      install/hst-install-ubuntu.sh

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

@@ -324,6 +324,13 @@ if [ ! -e '/usr/bin/wget' ]; then
     check_result $? "Can't install wget"
 fi
 
+# Checking curl
+if [ ! -e '/usr/bin/curl' ]; then
+    echo "[ * ] Installing curl..."
+    apt-get -y install curl >> $LOG
+    check_result $? "Can't install curl"
+fi
+
 # Checking dirmngr
 if [ ! -e '/usr/bin/dirmngr' ]; then
     echo "[ * ] Installing dirmngr..."

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

@@ -306,6 +306,13 @@ if [ ! -e '/usr/bin/wget' ]; then
     check_result $? "Can't install wget"
 fi
 
+# Checking curl
+if [ ! -e '/usr/bin/curl' ]; then
+    echo "[ * ] Installing curl..."
+    apt-get -y install curl >> $LOG
+    check_result $? "Can't install curl"
+fi
+
 # Check if apt-transport-https is installed
 if [ ! -e '/usr/lib/apt/methods/https' ]; then
     echo "[ * ] Installing apt-transport-https..."