forked from SelfPrivacy/selfprivacy-rest-api
Fixed logical mistakes in public key insertion mechanism
parent
18d8d78f0d
commit
e7edbe2669
2
main.py
2
main.py
|
@ -372,7 +372,7 @@ def readKey():
|
|||
if "openssh.authorizedKeys.keys = [" in line:
|
||||
print("[DEBUG] Found SSH key configuration snippet match!")
|
||||
print("[INFO] Writing new SSH key", sep="")
|
||||
fileContent.insert(index, "\n \"" + publicKey + "\"")
|
||||
fileContent.append(index, "\n \"" + publicKey + "\"")
|
||||
print("done")
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue