-
-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed serverLogs pages for Maillog and FTP logs for Ubuntu. Fixed CSF…
… bug for Ubuntu.
- Loading branch information
Showing
3 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/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 && python manage.py collectstatic --no-input | ||
rm -rf /usr/local/CyberCP/public/static/* | ||
cp -R /usr/local/CyberCP/static/* /usr/local/CyberCP/public/static/ | ||
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 |