mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
security: check if external app user already exists
This commit is contained in:
@@ -215,6 +215,16 @@ class WebsiteManager:
|
|||||||
except:
|
except:
|
||||||
apacheBackend = "0"
|
apacheBackend = "0"
|
||||||
|
|
||||||
|
import pwd
|
||||||
|
counter = 0
|
||||||
|
while 1:
|
||||||
|
try:
|
||||||
|
pwd.getpwnam(externalApp)
|
||||||
|
externalApp = '%s%s' % (externalApp, str(counter))
|
||||||
|
counter = counter + 1
|
||||||
|
except:
|
||||||
|
break
|
||||||
|
|
||||||
## Create Configurations
|
## Create Configurations
|
||||||
|
|
||||||
execPath = "sudo /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
execPath = "sudo /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user