⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.236
Server IP:
104.21.96.1
Server:
Linux vmi2315822.contaboserver.net 5.15.0-134-generic #145-Ubuntu SMP Wed Feb 12 20:08:39 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.3.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
CyberCP
/
View File Name :
upgrade.sh
#!/bin/bash ## Script to clear caches after static file changes. Useful for development and testing. ## All credit belongs to Usman Nasir ## To use make it executable ## chmod +x /usr/local/CyberCP/upgrade.sh ## Then run it like below. ## /usr/local/CyberCP/upgrade.sh cd /usr/local/CyberCP && /usr/local/CyberCP/bin/python manage.py collectstatic --no-input rm -rf /usr/local/CyberCP/public/static/* cp -R /usr/local/CyberCP/static/* /usr/local/CyberCP/public/static/ mkdir /usr/local/CyberCP/public/static/csf/ find /usr/local/CyberCP -type d -exec chmod 0755 {} \; find /usr/local/CyberCP -type f -exec chmod 0644 {} \; chmod -R 755 /usr/local/CyberCP/bin chown -R root:root /usr/local/CyberCP chown -R lscpd:lscpd /usr/local/CyberCP/public/phpmyadmin/tmp systemctl restart lscpd