aapanel can't access after running a custom script, all service return 502 Bad Gateway.
Is there a way to restore or I have to re-install everything
My script
#!/bin/bash
echo "Starting disk cleanup..."
Clean system cache
rm -rf /var/cache/*
echo "System cache cleaned."
Clean temporary files
rm -rf /tmp/*
echo "Temporary files cleaned."
Clean logs older than 7 days
find /var/log -type f -name "*.log" -mtime +7 -exec rm -f {} \;
echo "Old log files cleaned."
Clear aaPanel session cache (if necessary)
rm -rf /www/server/panel/temp/*
echo "aaPanel session cache cleaned."
Remove unnecessary aaPanel backup files (optional)
rm -rf /www/backup/*
echo "aaPanel backup files cleaned."
echo "Disk cleanup completed."