fix : modification du script de déploiement pour corriger le problème d'écriture des logs de prod

This commit is contained in:
tristan
2026-01-22 11:50:46 +01:00
parent c4f4107512
commit 5395dfefda
5 changed files with 27 additions and 46 deletions
+8 -2
View File
@@ -73,8 +73,14 @@ echo "Release ${TAG} deployed to ${DEPLOY_DIR}"
if [ -n "${DEPLOY_OWNER:-}" ]; then
DEPLOY_GROUP="${DEPLOY_GROUP:-www-data}"
chown -R "${DEPLOY_OWNER}:${DEPLOY_GROUP}" "$DEPLOY_DIR"
chmod -R g+rx,o+rx "$DEPLOY_DIR"
DEPLOY_PERMS_SCOPE="${DEPLOY_PERMS_SCOPE:-var}"
if [ "$DEPLOY_PERMS_SCOPE" = "all" ]; then
chown -R "${DEPLOY_OWNER}:${DEPLOY_GROUP}" "$DEPLOY_DIR"
chmod -R g+rx,o+rx "$DEPLOY_DIR"
elif [ -d "${DEPLOY_DIR}/var" ]; then
chown -R "${DEPLOY_OWNER}:${DEPLOY_GROUP}" "${DEPLOY_DIR}/var"
chmod -R g+rwX "${DEPLOY_DIR}/var"
fi
fi
if [ -f "${DEPLOY_DIR}/.env.local" ]; then