diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index dccb93cd8..468e60a98 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -195,7 +195,7 @@ class WebsiteManager: HA = data['HA'] externalApp = 'nobody' except: - externalApp = "".join(re.findall("[a-zA-Z]+", domain))[:7] + externalApp = "".join(re.findall("[a-zA-Z]+", domain))[:5] + str(randint(1000, 9999)) @@ -223,14 +223,6 @@ class WebsiteManager: import pwd counter = 0 - while 1: - try: - pwd.getpwnam(externalApp) - externalApp = '%s%s' % (externalApp, str(counter)) - counter = counter + 1 - except: - break - ## Create Configurations execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"