Browse Source

Merge pull request #123 from kaneawk/p2

Fix only install php cause missing openssl
lj2007331 7 years ago
parent
commit
5dc11687e2
2 changed files with 6 additions and 4 deletions
  1. 5 3
      include/check_download.sh
  2. 1 1
      include/check_sw.sh

+ 5 - 3
include/check_download.sh

@@ -11,11 +11,13 @@ checkDownload() {
   mirrorLink=http://mirrors.linuxeye.com/oneinstack/src
   pushd ${oneinstack_dir}/src
 
+  # General system utils
+  echo "Download openSSL..."
+  src_url=https://www.openssl.org/source/openssl-${openssl_version}.tar.gz && Download_src
+  src_url=http://curl.haxx.se/ca/cacert.pem && Download_src
+
   # Web
   if [ "${Web_yn}" == 'y' ]; then
-    echo "Download openSSL..."
-    src_url=https://www.openssl.org/source/openssl-${openssl_version}.tar.gz && Download_src
-    src_url=http://curl.haxx.se/ca/cacert.pem && Download_src
     case "${Nginx_version}" in
       1)
         echo "Download nginx..."

+ 1 - 1
include/check_sw.sh

@@ -21,7 +21,7 @@ installDepsDebian() {
   grep security /etc/apt/sources.list > /tmp/security.sources.list
   apt-get -y upgrade -o Dir::Etc::SourceList=/tmp/security.sources.list
 
-  apt-get autoremove
+  apt-get -y autoremove
 
   # Install needed packages
   case "${Debian_version}" in