#4044 create auth.log after emergency log delete

This commit is contained in:
rootzoll 2023-12-01 16:25:34 +01:00
parent 39a94dd4d4
commit 2995282d49

View File

@ -265,6 +265,8 @@ do
debuginfo=$(ls -la /var/log/ 2>/dev/null)
# dont delete directories - can make services crash
sudo rm /var/log/*
sudo touch /var/log/auth.log
sudo chown root:adm /var/log/auth.log
sudo service rsyslog restart
/home/admin/config.scripts/blitz.error.sh _background.sh "log-delete" "REPAIR: /var/log/ >5GB" "Logs in /var/log in were bigger then 5GB and got emergency delete to prevent fillup." "${debuginfo}"
sleep 10