mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
#4044 create auth.log after emergency log delete
This commit is contained in:
parent
39a94dd4d4
commit
2995282d49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user