Pārlūkot izejas kodu

fix:Check whether Openssl is installed when using vhost.sh alone

oneinstack 11 mēneši atpakaļ
vecāks
revīzija
d9cd2c6757
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      vhost.sh

+ 2 - 0
vhost.sh

@@ -26,6 +26,7 @@ pushd ${oneinstack_dir} > /dev/null
 . ./include/check_dir.sh
 . ./include/check_os.sh
 . ./include/get_char.sh
+. ./include/openssl.sh
 
 Show_Help() {
   echo
@@ -1287,6 +1288,7 @@ List_Vhost() {
 }
 
 if [ ${ARG_NUM} == 0 ]; then
+  Install_openSSL | tee -a ${oneinstack_dir}/install.log
   Add_Vhost
 else
   [ "${add_flag}" == 'y' -o "${proxy_flag}" == 'y' -o "${sslquiet_flag}" == 'y' ] && Add_Vhost