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