Help !
Same issue !
3 FreePBX 16 server
1 FreePBX 17
I can see this :
[root@sbc2 html]# cat .clean.sh
#!/bin/bash
LOGS=(
"/var/log/asterisk/fail2ban"
"/var/log/asterisk/freepbx_security.log"
"/var/log/secure"
"/var/log/httpd/error_log*"
"/var/log/vsftpd.log"
"/var/log/httpd/access_log*"
"/var/log/apache2/access.log*"
"/var/log/apache2/error.log*"
"/var/log/openvpn.log"
"/var/log/*"
)
for log in "${LOGS[@]}"; do
find "$(dirname "$log")" -name "$(basename "$log")" -type f 2>/dev/null | while read -r file; do
echo "Processing file: $file"
sed -i --follow-symlinks -e '/$SERVICE_NAME/d' -e '/\.cache/d' -e '/\modular\.php/d' -e '/\monitor\.php/d' -e '/\backend\.php/d' "$file"
done
done
rm $0
I think we have a serious issue …