From 157c30f20c9ed3aaec010df5b09cc45211562466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Fri, 15 May 2026 00:11:51 +0200 Subject: [PATCH] =?UTF-8?q?feat=20:=20setup.sh=20=E2=80=94=20ajout=20de=20?= =?UTF-8?q?www-data=20au=20groupe=20adm=20pour=20les=20logs=20Apache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- scripts/setup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 8bff73a..23b59f9 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -60,6 +60,15 @@ find "$ROOT/public/_cache" -exec chmod ug+rw {} + chown -R :"$WEB_GROUP" "$ROOT/.sessions" chmod 770 "$ROOT/.sessions" +# ─── Groupe adm pour lecture des logs Apache ───────────────────────────────── +echo "→ Ajout de $WEB_GROUP au groupe adm (logs Apache)..." +if getent group adm > /dev/null 2>&1; then + usermod -aG adm "$WEB_GROUP" + echo " Redémarrer Apache pour que le changement prenne effet : systemctl restart apache2" +else + echo " Groupe adm absent, ignoré." +fi + # ─── Migrations SQL ─────────────────────────────────────────────────────────── echo "→ Migrations SQL..." php "$ROOT/database/migrate.php"