full path to adduser

This commit is contained in:
Usman Nasir
2021-04-22 17:46:18 +05:00
parent 720f51d6f2
commit 963a49e771

View File

@@ -50,7 +50,7 @@ class vhost:
if os.path.exists("/etc/lsb-release"):
command = '/usr/sbin/adduser --no-create-home --home ' + path + ' --disabled-login --gecos "" ' + virtualHostUser
else:
command = "adduser " + virtualHostUser + " -M -d " + path
command = "/usr/sbin/adduser " + virtualHostUser + " -M -d " + path
ProcessUtilities.executioner(command)