mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-16 14:24:29 +00:00
Fixed logical mistakes in public key insertion mechanism
This commit is contained in:
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 a new issue