Update rm.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-06-04 23:15:06 +00:00
parent 244edad598
commit e32fa2fcc2
1 changed files with 43 additions and 0 deletions

View File

@ -223,4 +223,47 @@ then
#echo "found file"
fi
if [ -d "/var/log/FreeDMR" ]
then
sudo rm -r /var/log/FreeDMR
#echo "found file"
fi
if [ -d "/var/log/mmdvmh" ]
then
sudo rm -r /var/log/mmdvmh
#echo "found file"
fi
if [ -d "/var/log/ircddbgateway" ]
then
sudo rm -r /var/log/ircddbgateway
#echo "found file"
fi
if [ -f "/var/log/fail2ban.*" ]
then
sudo rm /var/log/fail2ban*
#echo "found file"
else
echo "file not found"
fi
if [ -f "/var/log/monit.log" ]
then
sudo rm /var/log/monit.log
#echo "found file"
else
echo "file not found"
fi
if [ -d "/var/log/apache2" ]
then
sudo rm -r /var/log/apache2
#echo "found file"
fi
if ls /var/log/*.1 &>/dev/null; then
sudo rm /var/log/*.1*
#echo "found file"
fi
##############