From 4b41b0bdbe10dc5363e9f3c28f0f645e472a0c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Tue, 19 May 2026 15:59:57 +0800 Subject: [PATCH] fix(install): exclude data/ from tar extraction on reinstall Docker writes data/mysql and data/redis as root; re-extracting over them causes tar permission errors and aborts the script. Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 784d82a..787f8c9 100755 --- a/install.sh +++ b/install.sh @@ -183,7 +183,7 @@ if [ -d "$INSTALL_DIR" ] && [ -f "$INSTALL_DIR/docker-compose.yml" ]; then fi mkdir -p "$INSTALL_DIR" -tar -xzf "$TMP_PKG" -C "$INSTALL_DIR" --strip-components=1 +tar -xzf "$TMP_PKG" -C "$INSTALL_DIR" --strip-components=1 --exclude='*/data' chmod +x "$INSTALL_DIR/scripts/"*.sh "$INSTALL_DIR/install.sh" 2>/dev/null || true ok "部署包解压完成: $INSTALL_DIR"