mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
make mail child domain optional
This commit is contained in:
@@ -199,6 +199,8 @@ class WebsiteManager:
|
||||
except:
|
||||
externalApp = "".join(re.findall("[a-zA-Z]+", domain))[:7]
|
||||
|
||||
|
||||
|
||||
try:
|
||||
counter = 0
|
||||
while 1:
|
||||
@@ -215,6 +217,11 @@ class WebsiteManager:
|
||||
except:
|
||||
apacheBackend = "0"
|
||||
|
||||
try:
|
||||
mailDomain = str(data['mailDomain'])
|
||||
except:
|
||||
mailDomain = "1"
|
||||
|
||||
import pwd
|
||||
counter = 0
|
||||
while 1:
|
||||
@@ -232,7 +239,7 @@ class WebsiteManager:
|
||||
" --administratorEmail " + adminEmail + " --phpVersion '" + phpSelection + \
|
||||
"' --virtualHostUser " + externalApp + " --ssl " + str(data['ssl']) + " --dkimCheck " \
|
||||
+ str(data['dkimCheck']) + " --openBasedir " + str(data['openBasedir']) + \
|
||||
' --websiteOwner ' + websiteOwner + ' --package ' + packageName + ' --tempStatusPath ' + tempStatusPath + " --apache " + apacheBackend
|
||||
' --websiteOwner ' + websiteOwner + ' --package ' + packageName + ' --tempStatusPath ' + tempStatusPath + " --apache " + apacheBackend + " --mailDomain %s" % (mailDomain)
|
||||
|
||||
ProcessUtilities.popenExecutioner(execPath)
|
||||
time.sleep(2)
|
||||
|
||||
Reference in New Issue
Block a user