feat : setup.sh — ajout de www-data au groupe adm pour les logs Apache
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,15 @@ find "$ROOT/public/_cache" -exec chmod ug+rw {} +
|
|||||||
chown -R :"$WEB_GROUP" "$ROOT/.sessions"
|
chown -R :"$WEB_GROUP" "$ROOT/.sessions"
|
||||||
chmod 770 "$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 ───────────────────────────────────────────────────────────
|
# ─── Migrations SQL ───────────────────────────────────────────────────────────
|
||||||
echo "→ Migrations SQL..."
|
echo "→ Migrations SQL..."
|
||||||
php "$ROOT/database/migrate.php"
|
php "$ROOT/database/migrate.php"
|
||||||
|
|||||||
Reference in New Issue
Block a user