bug fix: add lsphp74 to tuning

This commit is contained in:
Usman Nasir
2020-01-05 12:20:48 +05:00
parent aad6cb9b2b
commit 00d6b54f7a

View File

@@ -2001,8 +2001,9 @@ service_port = 9000
## Add LSPHP7.4 TO LSWS Ent configs
if os.path.exists('/usr/local/lsws/bin/openlitespeed'):
if not os.path.exists('/usr/local/lsws/bin/openlitespeed'):
command = 'wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/install/litespeed/httpd_config.xml'
Upgrade.executioner(command, command, 0)
os.remove('/usr/local/lsws/conf/httpd_config.xml')
shutil.copy('httpd_config.xml', '/usr/local/lsws/conf/httpd_config.xml')