mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-30 03:09:06 +01:00
plugin installation
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user