This script can clear/truncate all xtream ui logs.
Installation:
Done!
This script clear these tables and files:
client_logs
login_logs
mag_logs
panel_logs
reg_userlog
suspicious_logs
credits_log
server_activity
login_flood
user_activity
user_activity_now
stream_logs
error.log
php-fpm.log
Also you can run it on crontab for example every 12h.
For run it every 12h use these commands:
1- nano /etc/crontab (from command line)
2- add this line to crontab: 0 */12 * * * root sh /home/xtreamcodes/iptv_xtream_codes/clean.sh> /dev/null 2>&1
3- Press CRTL X and then press Y to save it.
Thats All.
(0 time(s) working and 0 time(s) not-working in total)