Add log directories for pveproxy with permissions

Create directories for pveproxy logs and set permissions
This commit is contained in:
MacRimi
2025-10-21 14:26:37 +02:00
committed by GitHub
parent 3287dc77e2
commit b79f22f4fe

View File

@@ -3911,6 +3911,13 @@ EOF
[[ "$BAK_OK" = "0" ]] && msg_ok "$(translate "Backup created:") /etc/systemd/journald.conf.bak.$(date +%Y%m%d-%H%M%S)" [[ "$BAK_OK" = "0" ]] && msg_ok "$(translate "Backup created:") /etc/systemd/journald.conf.bak.$(date +%Y%m%d-%H%M%S)"
msg_ok "$(translate "Journald configuration adjusted to") ${USE_MB}M (Log2RAM ${LOG2RAM_SIZE})" msg_ok "$(translate "Journald configuration adjusted to") ${USE_MB}M (Log2RAM ${LOG2RAM_SIZE})"
mkdir -p /var/log/pveproxy
chown -R www-data:www-data /var/log/pveproxy
chmod 0750 /var/log/pveproxy
mkdir -p /var/log.hdd/pveproxy
chown -R www-data:www-data /var/log.hdd/pveproxy
chmod 0750 /var/log.hdd/pveproxy
systemctl restart cron >/dev/null 2>&1 || true systemctl restart cron >/dev/null 2>&1 || true
systemctl restart log2ram >/dev/null 2>&1 || true systemctl restart log2ram >/dev/null 2>&1 || true