mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
- Remove CSF menu item from sidebar navigation - Disable CSF-related URL endpoints in firewall module - Update upgrade process to automatically remove CSF and restore firewalld - Archive CSF template and configuration files - Clean up CSF references in settings and upgrade scripts CSF (ConfigServer Security & Firewall) is shutting down on August 31, 2025. This commit removes CSF integration and ensures firewalld is restored as the default firewall solution during upgrades. Fixes #1473
27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
#!/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
|
|
|
|
# Check if virtual environment exists
|
|
if [[ ! -f /usr/local/CyberCP/bin/python ]]; then
|
|
echo "Error: CyberPanel virtual environment not found at /usr/local/CyberCP/bin/python"
|
|
echo "Please ensure CyberPanel is properly installed."
|
|
exit 1
|
|
fi
|
|
|
|
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/
|
|
# CSF support removed - discontinued on August 31, 2025
|
|
# 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
|