This commit is contained in:
usmannasir
2024-07-02 13:28:08 +05:00
parent d884243c80
commit c3538c01b0

View File

@@ -829,6 +829,29 @@ class ApplicationInstaller(multi.Thread):
if result.find('Success:') == -1: if result.find('Success:') == -1:
raise BaseException(result) raise BaseException(result)
### install CyberSMTP
command = f"{FinalPHPPath} -d error_reporting=0 /usr/bin/wp plugin install https://github.com/usmannasir/CyberSMTPs/archive/refs/heads/main.zip --allow-root --path=" + finalPath
result = ProcessUtilities.outputExecutioner(command, externalApp)
if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(str(result))
if result.find('Success:') == -1:
raise BaseException(result)
command = f"{FinalPHPPath} -d error_reporting=0 /usr/bin/wp plugin activate CyberSMTPs --allow-root --path=" + finalPath
result = ProcessUtilities.outputExecutioner(command, externalApp)
if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(str(result))
if result.find('Success:') == -1:
raise BaseException(result)
try: try:
if self.extraArgs['updates']: if self.extraArgs['updates']:
if self.extraArgs['updates'] == 'Disabled': if self.extraArgs['updates'] == 'Disabled':