fix(staging): keep /opt/wpp-staging/app writable for wpp runtime (fix #138) #139
Reference in New Issue
Block a user
Delete Branch "feature/fix-138-staging-app-ownership"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/opt/wpp-staging/releasesand/opt/wpp-staging/appare created withwpp:wppownership before deploy copy stepsrm -rf "${APP_DIR}"/*with a dotfile-safe cleanup (find ... -mindepth 1)runuser -u wpp -- test -w "${APP_DIR}"Why
Issue #138 observed staging deploy leaving app tree root-owned, causing sqlite/db open failures when runtime tries to write under app dir.
Validation
bash -n infra/staging/deploy_staging.shRefs #138
Refs #90
APPROVED ✅
Review summary:
infra/staging/deploy_staging.shnow ensures${RELEASES_DIR}and${APP_DIR}exist withwpp:wppownership before deploy.find ... -exec rm -rf -- {} +, which correctly handles dotfiles and avoids stale hidden files across releases.runuser -u wpp -- test -w "${APP_DIR}") before restart.No blockers found. CI status is green on current head SHA.
LGTM ✅
Gennemgået infra/staging/deploy_staging.sh for PR-head
30c22d2f0c.Ingen blockers fundet.