plugin installation

This commit is contained in:
usmannasir
2025-05-21 13:19:13 +05:00
parent 6f91a42ab4
commit 524a30f688

View File

@@ -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)