Fixed syntax issues

This commit is contained in:
Illia Chub 2021-10-12 11:42:45 +03:00
parent 2ae6925d61
commit b63a4c3b39

View file

@ -75,7 +75,7 @@ def createUser():
hashingCommand = '''
mkpasswd -m sha-512 {0}
'''.format(rawPassword)
passwordHashProcessDescriptor = subprocess.Popen([hashingCommand, stdout=subprocess.PIPE, stderr=STDOUT)
passwordHashProcessDescriptor = subprocess.Popen(hashingCommand, shell=True, stdout=subprocess.PIPE, stderr=STDOUT)
hashedPassword = passwordHashProcessDescriptor.communicate()[0]
hashedPassword = hashedPassword.decode("ascii")