refactor: remove VLESS/Xray, Hy2-only stack
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,17 +6,16 @@ set -euo pipefail
|
||||
[[ $EUID -eq 0 ]] || { echo "请使用 root 运行"; exit 1; }
|
||||
|
||||
echo "[*] 停止服务 ..."
|
||||
systemctl stop jiedian-panel xray sing-box 2>/dev/null || true
|
||||
systemctl disable jiedian-panel xray sing-box 2>/dev/null || true
|
||||
systemctl stop jiedian-panel sing-box xray 2>/dev/null || true
|
||||
systemctl disable jiedian-panel sing-box xray 2>/dev/null || true
|
||||
|
||||
echo "[*] 删除 systemd 单元 ..."
|
||||
rm -f /etc/systemd/system/jiedian-panel.service
|
||||
rm -f /etc/systemd/system/sing-box.service
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "[*] 删除 sing-box / Xray 配置 ..."
|
||||
echo "[*] 删除 sing-box 配置 ..."
|
||||
rm -rf /etc/sing-box
|
||||
rm -f /usr/local/etc/xray/config.json
|
||||
|
||||
echo "[*] 删除 nginx 站点 ..."
|
||||
rm -f /etc/nginx/sites-enabled/panel
|
||||
@@ -36,5 +35,4 @@ rm -rf "${ROOT}/client/generated"
|
||||
echo ""
|
||||
echo "卸载完成。重新安装:"
|
||||
echo " cd ${ROOT}"
|
||||
echo " bash scripts/generate-keys.sh # 可选,重置 Reality 密钥与面板密码"
|
||||
echo " bash scripts/install.sh"
|
||||
|
||||
Reference in New Issue
Block a user