From 524a30f688deccb69f524f0db7de37c977fccb0e Mon Sep 17 00:00:00 2001 From: usmannasir Date: Wed, 21 May 2025 13:19:13 +0500 Subject: [PATCH] plugin installation --- plogical/applicationInstaller.py | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 0f89134dc..988e64661 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -844,23 +844,23 @@ class ApplicationInstaller(multi.Thread): ### 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) + command = f"{FinalPHPPath} -d error_reporting=0 /usr/bin/wp plugin install https://github.com/usmannasir/CyberSMTP/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 CyberSMTP --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)