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"