logs: standardise log filenames to xamxam-{service}-{date}.log

This commit is contained in:
Pontoporeia
2026-08-24 11:34:34 +02:00
parent 7b6d79c133
commit d2cef85966
25 changed files with 442 additions and 83 deletions
+6 -7
View File
@@ -88,13 +88,12 @@ chown -R "$WEB_USER:$APP_GROUP" "$APP_DIR/storage/cache"
chmod -R 2775 "$APP_DIR/storage/cache"
ok "Cache dirs: created and owned by $WEB_USER:$APP_GROUP"
# ── 8. Provision /var/log/xamxam.log ─────────────────────────────────────────
if [ ! -f /var/log/xamxam.log ]; then
touch /var/log/xamxam.log
fi
chown "$WEB_USER:$APP_GROUP" /var/log/xamxam.log
chmod 640 /var/log/xamxam.log
ok "/var/log/xamxam.log: owned by $WEB_USER:$APP_GROUP (640)"
# ── 8. Provision app log directory (/var/log/xamxam) ──────────────────────────────
LOG_DIR="/var/log/xamxam"
mkdir -p "$LOG_DIR"
chown "$WEB_USER:$APP_GROUP" "$LOG_DIR"
chmod 2775 "$LOG_DIR"
ok "/var/log/xamxam: owned by $WEB_USER:$APP_GROUP (2775)"
printf "\n"
ok "Setup complete."