From 7e0d7133a76752e6a3d192ebf8f2ba69b8bf9fe5 Mon Sep 17 00:00:00 2001 From: misakano7545 Date: Fri, 27 May 2022 02:34:55 +0800 Subject: [PATCH] Optimize script --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 87e5a61..6ae436e 100644 --- a/install.sh +++ b/install.sh @@ -229,7 +229,7 @@ function domain_check() { if [[ ${wgcfv4_status} =~ "on"|"plus" ]] || [[ ${wgcfv6_status} =~ "on"|"plus" ]]; then # 关闭wgcf-warp,以防误判VPS IP情况 wg-quick down wgcf >/dev/null 2>&1 - judge "已关闭wgcf-warp,以防误判VPS IP情况" + judge "已关闭 wgcf-warp" fi local_ipv4=$(curl -s4m8 https://ip.gs) local_ipv6=$(curl -s6m8 https://ip.gs) @@ -406,11 +406,13 @@ function acme() { print_ok "SSL 证书配置成功" sleep 2 wg-quick up wgcf >/dev/null 2>&1 + judge "已启动 wgcf-warp" fi else print_error "SSL 证书生成失败" rm -rf "$HOME/.acme.sh/${domain}_ecc" wg-quick up wgcf >/dev/null 2>&1 + judge "已启动 wgcf-warp" exit 1 fi