This commit is contained in:
rootzoll 2021-09-16 20:39:44 +02:00
commit a8874ea6ca

View File

@ -251,6 +251,7 @@ if [ ${logsMegaByte} -gt 1000 ]; then
echo "/var/log/nginx is present"
fi
sudo rm -r /var/log/*
sudo service rsyslog restart
if [ $nginxLog == 1 ]; then
sudo mkdir /var/log/nginx
echo "Recreated /var/log/nginx"