From 659e4fc952ca4e7928241f245c07f0452e7e3bfc Mon Sep 17 00:00:00 2001 From: wulabing Date: Mon, 24 Feb 2020 01:23:55 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3.2=20=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=AF=86=E5=88=AB=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index eac9574..bbfd56b 100644 --- a/install.sh +++ b/install.sh @@ -37,7 +37,7 @@ nginx_conf="${nginx_conf_dir}/v2ray.conf" nginx_dir="/etc/nginx" web_dir="/home/wwwroot" nginx_openssl_src="/usr/local/src" -v2ray_bin_file="/usr/bin/v2ray" +v2ray_bin_dir="/usr/bin/v2ray" v2ray_info_file="$HOME/v2ray_info.inf" v2ray_qr_config_file="/usr/local/vmess_qr.json" nginx_systemd_file="/etc/systemd/system/nginx.service" @@ -785,7 +785,7 @@ uninstall_all(){ stop_process_systemd [[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file [[ -f $v2ray_systemd_file ]] && rm -f $v2ray_systemd_file - [[ -d $v2ray_bin_file ]] && rm -rf $v2ray_bin_file + [[ -d $v2ray_bin_dir ]] && rm -rf $v2ray_bin_dir if [[ -d $nginx_dir ]] then echo -e "${OK} ${Green} 是否卸载 Nginx [Y/N]? ${Font}" @@ -810,7 +810,7 @@ delete_tls_key_and_crt(){ echo -e "${OK} ${GreenBG} 已清空证书遗留文件 ${Font}" } judge_mode(){ - if [ -f $v2ray_bin_file ] + if [ -f $v2ray_bin_dir/v2ray ] then if [[ -n $(grep "ws" $v2ray_qr_config_file) ]] then