mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix: upgrade mautic version and fix installation issues
This commit is contained in:
@@ -191,7 +191,6 @@ class phpUtilities:
|
||||
str(msg) + " [savePHPConfigAdvance]")
|
||||
print("0,"+str(msg))
|
||||
|
||||
|
||||
@staticmethod
|
||||
def GetStagingInJson(stagings):
|
||||
try:
|
||||
@@ -217,6 +216,25 @@ class phpUtilities:
|
||||
except BaseException as msg:
|
||||
return msg
|
||||
|
||||
@staticmethod
|
||||
def GetPHPVersionFromFile(vhFile):
|
||||
if ProcessUtilities.decideServer() == ProcessUtilities.OLS:
|
||||
command = f'grep -Eo "/usr/local/lsws/lsphp[0-9]+/bin/lsphp" {vhFile}'
|
||||
result = ProcessUtilities.outputExecutioner(command, None, True).rstrip('\n')
|
||||
|
||||
result = result.rsplit("lsphp", 1)[0] + "php"
|
||||
return result
|
||||
|
||||
else:
|
||||
command = f'grep -Eo -m 1 "php[0-9]+" {vhFile}'
|
||||
result = ProcessUtilities.outputExecutioner(command, None, True).rstrip('\n')
|
||||
result = f'/usr/local/lsws/ls{result}/bin/lsphp'
|
||||
result = result.rsplit("lsphp", 1)[0] + "php"
|
||||
return result
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user