From e32fa2fcc2febfbcdfcec0dcb7409da340103049 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sun, 4 Jun 2023 23:15:06 +0000 Subject: [PATCH] Update rm.sh --- install/rm.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/install/rm.sh b/install/rm.sh index 5d94cad..9ee924f 100644 --- a/install/rm.sh +++ b/install/rm.sh @@ -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 + ##############