fix : vérification écriture settings + script setup.sh #63
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user