Преглед изворни кода

Add a validation if curl is already installed, if not, do it.

Raphael Schneeberger пре 5 година
родитељ
комит
76201d751a
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..."