mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-16 02:06:13 +01:00
bug fix: mautic install
This commit is contained in:
@@ -108,11 +108,12 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
#command = 'curl -fsSL <https://deb.nodesource.com/setup_20.x> | sudo -E bash -'
|
#command = 'curl -fsSL <https://deb.nodesource.com/setup_20.x> | sudo -E bash -'
|
||||||
#ProcessUtilities.executioner(command, 'root', True)
|
#ProcessUtilities.executioner(command, 'root', True)
|
||||||
|
|
||||||
command = 'DEBIAN_FRONTEND=noninteractive nodejs npm -y'
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get install nodejs npm -y'
|
||||||
ProcessUtilities.executioner(command, 'root', True)
|
ProcessUtilities.executioner(command, 'root', True)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
def installMautic(self):
|
def installMautic(self):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
@@ -263,6 +264,10 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
raise BaseException(result)
|
raise BaseException(result)
|
||||||
|
|
||||||
|
|
||||||
|
command = f'{phpPath} -d memory_limit=256M bin/console mautic:assets:generate'
|
||||||
|
ProcessUtilities.outputExecutioner(command, externalApp, None, finalPath)
|
||||||
|
|
||||||
|
|
||||||
ExistingDocRoot = ACLManager.FindDocRootOfSite(None, domainName)
|
ExistingDocRoot = ACLManager.FindDocRootOfSite(None, domainName)
|
||||||
|
|
||||||
if ExistingDocRoot.find('docroot') > -1:
|
if ExistingDocRoot.find('docroot') > -1:
|
||||||
|
|||||||
Reference in New Issue
Block a user