mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
smtp
This commit is contained in:
@@ -829,6 +829,29 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
if result.find('Success:') == -1:
|
if result.find('Success:') == -1:
|
||||||
raise BaseException(result)
|
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:
|
try:
|
||||||
if self.extraArgs['updates']:
|
if self.extraArgs['updates']:
|
||||||
if self.extraArgs['updates'] == 'Disabled':
|
if self.extraArgs['updates'] == 'Disabled':
|
||||||
|
|||||||
Reference in New Issue
Block a user