From ec70c7d3e6c0db09dc681387822534d50c00e0be Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 13 Oct 2020 18:28:14 +0500 Subject: [PATCH] bug fix: random linux user while creating via cli --- cli/cyberPanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cyberPanel.py b/cli/cyberPanel.py index 132665a12..afc260955 100755 --- a/cli/cyberPanel.py +++ b/cli/cyberPanel.py @@ -39,8 +39,8 @@ class cyberPanel: def createWebsite(self, package, owner, domainName, email, php, ssl, dkim, openBasedir): try: - - externalApp = "".join(re.findall("[a-zA-Z]+", domainName))[:7] + from random import randint + externalApp = "".join(re.findall("[a-zA-Z]+", domainName))[:5] + str(randint(1000, 9999)) phpSelection = 'PHP ' + php result = virtualHostUtilities.createVirtualHost(domainName, email, phpSelection, externalApp, ssl, dkim,