feat(脚本): 更新卸载方法
parent
df6f019c31
commit
eec4cad38c
12
install.sh
12
install.sh
|
@ -1433,25 +1433,27 @@ unInstall(){
|
||||||
handleNginx stop
|
handleNginx stop
|
||||||
if [[ -z `ps -ef|grep -v grep|grep nginx` ]]
|
if [[ -z `ps -ef|grep -v grep|grep nginx` ]]
|
||||||
then
|
then
|
||||||
echoContent green "停止Nginx成功\n"
|
echoContent green " ---> 停止Nginx成功"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
handleV2Ray stop
|
handleV2Ray stop
|
||||||
|
|
||||||
rm -rf /etc/systemd/system/v2ray.service
|
rm -rf /etc/systemd/system/v2ray.service
|
||||||
echoContent red "删除V2Ray开机自启成功"
|
echoContent green " ---> 删除V2Ray开机自启完成"
|
||||||
|
|
||||||
if [[ -d "/etc/v2ray-agent/tls" ]] && [[ ! -z `find /etc/v2ray-agent/tls/ -name "*.key"` ]] && [[ ! -z `find /etc/v2ray-agent/tls/ -name "*.crt"` ]]
|
if [[ -d "/etc/v2ray-agent/tls" ]] && [[ ! -z `find /etc/v2ray-agent/tls/ -name "*.key"` ]] && [[ ! -z `find /etc/v2ray-agent/tls/ -name "*.crt"` ]]
|
||||||
then
|
then
|
||||||
mv /etc/v2ray-agent/tls /tmp
|
mv /etc/v2ray-agent/tls /tmp
|
||||||
if [[ ! -z `find /tmp/tls -name '*.key'` ]]
|
if [[ ! -z `find /tmp/tls -name '*.key'` ]]
|
||||||
then
|
then
|
||||||
echoContent green "备份证书成功,请注意留存。[/tmp/tls]"
|
echoContent yellow " ---> 备份证书成功,请注意留存。[/tmp/tls]"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf /etc/v2ray-agent
|
rm -rf /etc/v2ray-agent
|
||||||
echoContent green "卸载完成"
|
rm -rf /etc/nginx/conf.d/alone.conf
|
||||||
|
echoContent green " ---> 卸载V2Ray完成"
|
||||||
|
echoContent green " ---> 卸载完成"
|
||||||
}
|
}
|
||||||
# 检查错误
|
# 检查错误
|
||||||
checkFail(){
|
checkFail(){
|
||||||
|
@ -1534,7 +1536,7 @@ menu(){
|
||||||
renewalTLS 1
|
renewalTLS 1
|
||||||
;;
|
;;
|
||||||
10)
|
10)
|
||||||
unInstall
|
unInstall 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
Loading…
Reference in New Issue