security: check if external app user already exists

This commit is contained in:
Usman Nasir
2020-02-14 22:27:56 +05:00
parent b30f0f1940
commit 759bd40b07

View File

@@ -215,6 +215,16 @@ class WebsiteManager:
except:
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
execPath = "sudo /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"