mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
update mautic to mautic 5 and php 8.1
This commit is contained in:
@@ -125,9 +125,9 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
|
|
||||||
if not os.path.exists(phpPath):
|
if not os.path.exists(phpPath):
|
||||||
statusFile = open(tempStatusPath, 'w')
|
statusFile = open(tempStatusPath, 'w')
|
||||||
statusFile.writelines('PHP 8.0 missing installing now..,20')
|
statusFile.writelines('PHP 8.1 missing installing now..,20')
|
||||||
statusFile.close()
|
statusFile.close()
|
||||||
phpUtilities.InstallSaidPHP('80')
|
phpUtilities.InstallSaidPHP('81')
|
||||||
|
|
||||||
|
|
||||||
FNULL = open(os.devnull, 'w')
|
FNULL = open(os.devnull, 'w')
|
||||||
@@ -213,7 +213,7 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
statusFile.close()
|
statusFile.close()
|
||||||
|
|
||||||
### replace command with composer install
|
### replace command with composer install
|
||||||
command = f'{phpPath} /usr/bin/composer create-project mautic/recommended-project:^4 {finalPath}'
|
command = f'{phpPath} /usr/bin/composer create-project mautic/recommended-project:^5 {finalPath}'
|
||||||
ProcessUtilities.outputExecutioner(command, externalApp, None)
|
ProcessUtilities.outputExecutioner(command, externalApp, None)
|
||||||
|
|
||||||
statusFile = open(tempStatusPath, 'w')
|
statusFile = open(tempStatusPath, 'w')
|
||||||
|
|||||||
@@ -4347,12 +4347,12 @@ StrictHostKeyChecking no
|
|||||||
else:
|
else:
|
||||||
return ACLManager.loadErrorJson('installStatus', 0)
|
return ACLManager.loadErrorJson('installStatus', 0)
|
||||||
|
|
||||||
#### Before installing mautic change php to 8.0
|
#### Before installing mautic change php to 8.1
|
||||||
|
|
||||||
completePathToConfigFile = f'/usr/local/lsws/conf/vhosts/{self.domain}/vhost.conf'
|
completePathToConfigFile = f'/usr/local/lsws/conf/vhosts/{self.domain}/vhost.conf'
|
||||||
|
|
||||||
execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
||||||
execPath = execPath + " changePHP --phpVersion 'PHP 8.0' --path " + completePathToConfigFile
|
execPath = execPath + " changePHP --phpVersion 'PHP 8.1' --path " + completePathToConfigFile
|
||||||
ProcessUtilities.executioner(execPath)
|
ProcessUtilities.executioner(execPath)
|
||||||
|
|
||||||
mailUtilities.checkHome()
|
mailUtilities.checkHome()
|
||||||
|
|||||||
Reference in New Issue
Block a user