From 2ae6925d613d0db6d32cb9f074982da05cd771aa Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 12 Oct 2021 11:33:14 +0300 Subject: [PATCH] Fixed syntax issues --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4ea7801..bba4197 100755 --- a/main.py +++ b/main.py @@ -75,7 +75,7 @@ def createUser(): hashingCommand = ''' mkpasswd -m sha-512 {0} '''.format(rawPassword) - passwordHashProcessDescriptor = subprocess.Popen([hashingCommand, shell=True, stdout=subprocess.PIPE, stderr=STDOUT) + passwordHashProcessDescriptor = subprocess.Popen([hashingCommand, stdout=subprocess.PIPE, stderr=STDOUT) hashedPassword = passwordHashProcessDescriptor.communicate()[0] hashedPassword = hashedPassword.decode("ascii")