From 83fd1b3d0b5b98fc9400ecaea3bcff72ee03432e Mon Sep 17 00:00:00 2001 From: 233boy Date: Sun, 11 Nov 2018 16:24:49 +0800 Subject: [PATCH] fix caddy issue --- install.sh | 11 ++++++----- v2ray.sh | 10 ++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 5e695ad..0ddf8c7 100644 --- a/install.sh +++ b/install.sh @@ -290,6 +290,7 @@ tls_config() { error else if [[ "$record" == [Yy] ]]; then + domain_check echo echo echo -e "$yellow 域名解析 = ${cyan}我确定已经有解析了$none" @@ -362,10 +363,10 @@ path_config_ask() { echo while :; do echo -e "是否开启 网站伪装 和 路径分流 [${magenta}Y/N$none]" - read -p "$(echo -e "(默认: [${cyan}N$none]):")" is_path - [[ -z $is_path ]] && is_path="n" + read -p "$(echo -e "(默认: [${cyan}N$none]):")" path_ask + [[ -z $path_ask ]] && path_ask="n" - case $is_path in + case $path_ask in Y | y) path_config break @@ -701,7 +702,7 @@ install_caddy() { } caddy_config() { # local email=$(shuf -i1-10000000000 -n1) - _load caddy_config.sh + _load caddy-config.sh # systemctl restart caddy do_service restart caddy @@ -953,7 +954,7 @@ install() { shadowsocks_config install_info try_enable_bbr - [[ $caddy ]] && domain_check + # [[ $caddy ]] && domain_check install_v2ray if [[ $caddy || $v2ray_port == "80" ]]; then if [[ $cmd == "yum" ]]; then diff --git a/v2ray.sh b/v2ray.sh index 4f6b9c5..dbc6472 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v3.03" +_version="v3.04" cmd="apt-get" @@ -1007,6 +1007,7 @@ tls_config() { error else if [[ "$record" == [Yy] ]]; then + domain_check echo echo echo -e "$yellow 域名解析 = ${cyan}我确定已经有解析了$none" @@ -1023,7 +1024,7 @@ tls_config() { if [[ $caddy ]]; then path_config_ask pause - domain_check + # domain_check backup_config v2ray_transport domain if [[ $new_path ]]; then backup_config +path @@ -1252,7 +1253,7 @@ install_caddy() { } caddy_config() { # local email=$(shuf -i1-10000000000 -n1) - _load caddy_config.sh + _load caddy-config.sh # systemctl restart caddy do_service restart caddy } @@ -1603,13 +1604,14 @@ change_domain() { error else if [[ "$record" == [Yy] ]]; then + domain_check echo echo echo -e "$yellow 域名解析 = ${cyan}我确定已经有解析了$none" echo "----------------------------------------------------------------" echo pause - domain_check + # domain_check backup_config domain domain=$new_domain caddy_config