bug fix: cPanel importer set default php if the inherit php is not set
This commit is contained in:
parent
19fe606436
commit
e01dd72e24
|
|
@ -243,10 +243,6 @@ def main():
|
|||
elif args["function"] == "submitinstallImunifyAV":
|
||||
CageFS.submitinstallImunifyAV()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,10 @@ class cPanelImporter:
|
|||
self.PHPVersion = 'PHP 8.0'
|
||||
|
||||
if self.PHPVersion == '':
|
||||
self.PHPVersion = self.InheritPHP
|
||||
if self.InheritPHP != '':
|
||||
self.PHPVersion = self.InheritPHP
|
||||
else:
|
||||
self.PHPVersion = 'PHP 7.4'
|
||||
|
||||
return self.PHPVersion
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,6 @@ class WebsiteManager:
|
|||
json_data = json.dumps(data_ret)
|
||||
return HttpResponse(json_data)
|
||||
|
||||
|
||||
try:
|
||||
HA = data['HA']
|
||||
externalApp = 'nobody'
|
||||
|
|
|
|||
Loading…
Reference in New Issue