From a07a0d1a986992e55a5c008d446e8a8d2ce4be9a Mon Sep 17 00:00:00 2001 From: boban Date: Thu, 23 Apr 2026 21:19:48 +0200 Subject: [PATCH] Fix: APP_DIR vor git clone leeren wenn kein .git vorhanden Co-Authored-By: Claude Sonnet 4.6 --- installer.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/installer.sh b/installer.sh index 2161b1e..84b2e1d 100644 --- a/installer.sh +++ b/installer.sh @@ -529,6 +529,7 @@ fi # Falls dein Repo später bereitsteht, überschreibt dieser Block das leere/Standard-Laravel. if [ "${GIT_REPO}" != "https://example.com/your-repo-placeholder.git" ]; then if [ ! -d "${APP_DIR}/.git" ]; then + rm -rf "${APP_DIR}" sudo -u "$APP_USER" -H bash -lc "git clone --depth=1 -b ${GIT_BRANCH} ${GIT_REPO} ${APP_DIR}" else sudo -u "$APP_USER" -H bash -lc "cd ${APP_DIR} && git fetch --depth=1 origin ${GIT_BRANCH} && git checkout ${GIT_BRANCH} && git pull --ff-only"