mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
logs: standardise log filenames to xamxam-{service}-{date}.log
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user