bug fix: upgrade mautic version and fix installation issues

This commit is contained in:
usman@cyberpersons.com
2023-08-10 12:26:06 +05:00
parent b3726e7b53
commit db8903bcf5
4 changed files with 42 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ class ApplicationInstaller(multi.Thread):
LOCALHOST = 'localhost'
REMOTE = 0
PORT = '3306'
MauticVersion = '4.4.0'
MauticVersion = '4.4.9'
PrestaVersion = '1.7.8.3'
def __init__(self, installApp, extraArgs):
@@ -99,6 +99,15 @@ class ApplicationInstaller(multi.Thread):
password = self.extraArgs['password']
email = self.extraArgs['email']
### lets first find php path
from plogical.phpUtilities import phpUtilities
vhFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf'
phpPath = phpUtilities.GetPHPVersionFromFile(vhFile)
FNULL = open(os.devnull, 'w')
## Open Status File
@@ -242,7 +251,7 @@ $parameters = array(
command = 'cp %s %s/app/config/local.php' % (localDB, finalPath)
ProcessUtilities.executioner(command, externalApp)
command = "/usr/local/lsws/lsphp80/bin/php bin/console mautic:install http://%s -f" % (finalURL)
command = f"{phpPath} bin/console mautic:install http://%s -f" % (finalURL)
result = ProcessUtilities.outputExecutioner(command, externalApp, None, finalPath)
if result.find('Install complete') == -1: