correction set_userkey error message
This commit is contained in:
parent
e7903ded1b
commit
7b4414b137
@ -62,6 +62,7 @@ def main():
|
||||
keyssh = f.read()
|
||||
|
||||
clef_ssh = base64.encodestring(keyssh).decode()
|
||||
os.chdir("/etc/postgresql/")
|
||||
cmd="""sudo -u postgres psql -c "update users set cle='{}' where login='{}';" zephir""".format(clef_ssh,user)
|
||||
output = os.popen(cmd)
|
||||
res = output.read().strip()
|
||||
|
Loading…
Reference in New Issue
Block a user