diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 2a8513822..cea5e8620 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -829,6 +829,29 @@ class ApplicationInstaller(multi.Thread): if result.find('Success:') == -1: 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: if self.extraArgs['updates']: if self.extraArgs['updates'] == 'Disabled':