diff --git a/install.sh b/install.sh index d3118e7..083a2d5 100644 --- a/install.sh +++ b/install.sh @@ -626,7 +626,7 @@ judge "Nginx systemd ServerFile 添加" } tls_type(){ - if [[ -f "/etc/nginx/sbin/nginx" ]] && [[ -f "$nginx_conf" ]];then + if [[ -f "/etc/nginx/sbin/nginx" ]] && [[ -f "$nginx_conf" ]] && [[ "$shell_mode" == "ws" ]];then echo "请选择支持的 TLS 版本(default:1):" echo "1: TLS1.1 TLS1.2 and TLS1.3" echo "2: TLS1.2 and TLS1.3" @@ -646,7 +646,7 @@ tls_type(){ systemctl restart nginx judge "Nginx 重启" else - echo -e "${Error} ${RedBG} Nginx 或 配置文件不存在,请正确安装脚本后执行${Font}" + echo -e "${Error} ${RedBG} Nginx 或 配置文件不存在 或当前安装版本为 h2 ,请正确安装脚本后执行${Font}" fi } show_access_log(){