From 55e2c3b80bfe163085699c90275ead0c7a5c01e9 Mon Sep 17 00:00:00 2001 From: twothatit Date: Sun, 8 Feb 2026 20:21:33 +0100 Subject: [PATCH] Fix install.sh: copy .git directory for update support via git pull Changed cp -r ./* to cp -a . so hidden files (.git) are included when copying to the install directory. Without this, git pull fails in /opt/netbird-msp because it's not a git repository. Co-Authored-By: Claude Opus 4.6 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e5f2bef..5535c91 100644 --- a/install.sh +++ b/install.sh @@ -355,9 +355,9 @@ ENVEOF chmod 600 "$INSTALL_DIR/.env" echo -e "${GREEN}✓ Container environment created${NC}" -# Copy application files +# Copy application files (including .git for updates via git pull) echo "Copying application files..." -cp -r ./* "$INSTALL_DIR/" 2>/dev/null || true +cp -a . "$INSTALL_DIR/" 2>/dev/null || true cd "$INSTALL_DIR" echo -e "${GREEN}✓ Files copied to $INSTALL_DIR${NC}"