mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
bug fix: fix duplicate user issue that fallback to root
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user