diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 3c69fbb..a54fc49 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -45,6 +45,11 @@ cd "$SRC" git fetch --all --prune git pull --ff-only +# ── git pull 후 파일 소유권 복원 (deployer가 root로 실행되므로) ── +DEPLOY_UID="${PUID:-1026}" +DEPLOY_GID="${PGID:-100}" +chown -R "${DEPLOY_UID}:${DEPLOY_GID}" "$SRC" + # ── 릴리즈 백업 (롤백용) ── TAG="$(date +%Y%m%d-%H%M%S)" BACKUP_DIR="$DST/.releases/$TAG"