Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Aug 9, 2024
1 parent 7b58c3b commit 6c2face
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions plogical/applicationInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,23 +832,23 @@ def installWordPress(self):

### 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/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)



Expand Down

0 comments on commit 6c2face

Please sign in to comment.