From 3c96e0bc0024199a0079be30679b7290af0dcd94 Mon Sep 17 00:00:00 2001 From: paniy Date: Thu, 17 Jun 2021 16:59:14 +0800 Subject: [PATCH] Fix SSL cert --- install.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 129b8a8..2193581 100644 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ OK="${Green}[OK]${Font}" Error="${Red}[错误]${Font}" Warning="${Red}[警告]${Font}" -shell_version="1.7.2.2" +shell_version="1.7.2.3" shell_mode="未安装" tls_mode="None" ws_grpc_mode="None" @@ -826,12 +826,9 @@ nginx_update() { } ssl_install() { - #if [[ ${ID} == "centos" ]]; then - # pkg_install "nc,socat" - #else - # pkg_install "netcat,socat" - #fi - #judge "安装 SSL 证书生成脚本依赖" + + pkg_install "socat" + judge "安装 SSL 证书生成脚本依赖" read_optimize "请输入注册域名的邮箱 (eg:me@idleleo.com):" "myemail" "NULL" curl https://get.acme.sh | sh -s email=$myemail @@ -2131,6 +2128,7 @@ idleleo_commend() { fi else [[ ! -d "${idleleo_dir}" ]] && mkdir -p ${idleleo_dir} + pkg_install "wget" wget -N --no-check-certificate -P ${idleleo_dir} https://raw.githubusercontent.com/paniy/Xray_bash_onekey/main/install.sh && chmod +x ${idleleo_dir}/install.sh ln -s ${idleleo_dir}/install.sh ${idleleo_commend_file} clear