fix(infra): chown -R APP_DIR so service user owns full tree
Without -R, a manual uv sync or git operation run as root would create files under /opt/padelnomics owned by root, breaking uv for the service user (Permission denied on .venv/bin/python3). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,7 @@ fi
|
|||||||
|
|
||||||
log "Creating directories..."
|
log "Creating directories..."
|
||||||
mkdir -p "${APP_DIR}" "${DATA_DIR}/landing"
|
mkdir -p "${APP_DIR}" "${DATA_DIR}/landing"
|
||||||
chown "${SERVICE_USER}:${SERVICE_USER}" "${APP_DIR}"
|
chown -R "${SERVICE_USER}:${SERVICE_USER}" "${APP_DIR}"
|
||||||
chown -R "${SERVICE_USER}:${SERVICE_USER}" "${DATA_DIR}"
|
chown -R "${SERVICE_USER}:${SERVICE_USER}" "${DATA_DIR}"
|
||||||
|
|
||||||
# ── Docker ────────────────────────────────────────────────────────────────────
|
# ── Docker ────────────────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user