mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-16 14:24:29 +00:00
Fixed SSH configuration write issues
This commit is contained in:
parent
b8a2f20840
commit
8d05640a09
2
main.py
2
main.py
|
@ -163,7 +163,7 @@ def enableSSH():
|
|||
|
||||
fileContent = readOnlyFileDescriptor.read()
|
||||
|
||||
fileContent = fileContent.replace("enabled = false;", "enabled = true;")
|
||||
fileContent = fileContent.replace("enable = false;", "enable = true;")
|
||||
readOnlyFileDescriptor.close()
|
||||
|
||||
readWriteFileDescriptor = open("/etc/nixos/configuration.nix", "wt")
|
||||
|
|
Loading…
Reference in a new issue