mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 07:16:15 +01:00
OLS/LS restart on htaccess change
Ref: https://feedback.cyberpanel.net/b/requests/p/automatic-restart-of-openlitespeed-server-after-any-change-in-htaccess
This commit is contained in:
@@ -1712,6 +1712,7 @@ imap_folder_list_limit = 0
|
||||
7 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
|
||||
0 12 * * * /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py Daily
|
||||
0 0 * * 0 /usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py Weekly
|
||||
*/3 * * * * if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl restart; fi
|
||||
"""
|
||||
cronFile.write(content)
|
||||
cronFile.close()
|
||||
|
||||
Reference in New Issue
Block a user