mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +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']
|
HA = data['HA']
|
||||||
externalApp = 'nobody'
|
externalApp = 'nobody'
|
||||||
except:
|
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
|
import pwd
|
||||||
counter = 0
|
counter = 0
|
||||||
|
|
||||||
while 1:
|
|
||||||
try:
|
|
||||||
pwd.getpwnam(externalApp)
|
|
||||||
externalApp = '%s%s' % (externalApp, str(counter))
|
|
||||||
counter = counter + 1
|
|
||||||
except:
|
|
||||||
break
|
|
||||||
|
|
||||||
## Create Configurations
|
## Create Configurations
|
||||||
|
|
||||||
execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user