fix : doc et script de déploiement

This commit is contained in:
tristan
2026-01-22 16:36:46 +01:00
parent 7dc4fdd1c0
commit ac5a3493e7
4 changed files with 30 additions and 21 deletions
+1 -12
View File
@@ -5,6 +5,7 @@ set -euo pipefail
# Requires: curl, tar, (optional) rsync
#
# Auth token: set RELEASE_TOKEN env var or create /etc/ferme-release-token
umask 002
TAG="${1:-}"
if [ -z "$TAG" ]; then
@@ -71,18 +72,6 @@ fi
echo "Release ${TAG} deployed to ${DEPLOY_DIR}"
if [ -n "${DEPLOY_OWNER:-}" ]; then
DEPLOY_GROUP="${DEPLOY_GROUP:-www-data}"
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
echo "Running migrations (if any)..."
php "${DEPLOY_DIR}/bin/console" doctrine:migrations:migrate --no-interaction --env=prod