xray-0.0.5

[bugfix] 修复 Nginx 安装自启动导致证书签发异常问题
pull/319/head
wulabing 2021-02-15 21:45:27 +08:00
parent 2363a621db
commit 50604086d7
No known key found for this signature in database
GPG Key ID: 213391AFDF73AE00
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ OK="${Green}[OK]${Font}"
ERROR="${Red}[ERROR]${Font}"
# 变量
shell_version="0.0.4"
shell_version="0.0.5"
github_branch="xray"
version_cmp="/tmp/version_cmp.tmp"
xray_conf_dir="/usr/local/etc/xray"
@ -314,6 +314,9 @@ function acme() {
}
function ssl_judge_and_install() {
# 停止 Nginx 防止端口占用
systemctl stop nginx
if [[ -f "/ssl/xray.key" || -f "/ssl/xray.crt" ]]; then
echo "/ssl 目录下证书文件已存在"
echo -e "${OK} ${GreenBG} 是否删除 [Y/N]? ${Font}"