From a55224b063419afb0e7a57294904a9decc41e232 Mon Sep 17 00:00:00 2001 From: Arvin <62139570+wnlen@users.noreply.github.com> Date: Sat, 21 Mar 2026 14:26:01 +0800 Subject: [PATCH] Update install.sh --- install.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 8ae4a29..d98a70d 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -euo pipefail Server_Dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -Install_Dir="${CLASH_INSTALL_DIR:-/opt/clash-for-linux}" +Install_Dir="${CLASH_INSTALL_DIR:-$Server_Dir}" Service_Name="clash-for-linux" Service_User="root" @@ -26,15 +26,6 @@ fi # ========================= mkdir -p "$Install_Dir" -if [ "$Server_Dir" != "$Install_Dir" ]; then - echo "[INFO] sync project to ${Install_Dir}" - if command -v rsync >/dev/null 2>&1; then - rsync -a --delete --exclude '.git' "$Server_Dir/" "$Install_Dir/" - else - cp -a "$Server_Dir/." "$Install_Dir/" - fi -fi - chmod +x "$Install_Dir"/clashctl 2>/dev/null || true chmod +x "$Install_Dir"/scripts/* 2>/dev/null || true chmod +x "$Install_Dir"/bin/* 2>/dev/null || true