Skip to content
Permalink
Browse files

cPanel Importer: Bug fix: Domain not allowed on rainloop

  • Loading branch information...
usmannasir committed Aug 23, 2019
1 parent 38779d5 commit 991469296417d5e5e3e8aaf9b8d8eb1eb467c1b2
Showing with 6 additions and 1 deletion.
  1. +6 −1 plogical/mailUtilities.py
@@ -112,7 +112,12 @@ def createEmailAccount(domain, userName, password):

execPath = "/usr/local/CyberCP/bin/python2 /usr/local/CyberCP/plogical/mailUtilities.py"
execPath = execPath + " AfterEffects --domain " + domain
ProcessUtilities.executioner(execPath, 'lscpd')

if os.getlogin() == 'root':
## This is the case when cPanel Importer is running and token is not present in enviroment.
ProcessUtilities.normalExecutioner(execPath)
else:
ProcessUtilities.executioner(execPath, 'lscpd')

## After effects ends

0 comments on commit 9914692

Please sign in to comment.
You can’t perform that action at this time.