diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 52a539434..24a2ac04f 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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')