mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-09 17:39:31 +00:00
Fixed null pointing references at user addition endpoint
This commit is contained in:
parent
db726b82e2
commit
fe6e3c6034
2
main.py
2
main.py
|
@ -94,7 +94,7 @@ def createUser():
|
||||||
if line.startswith(" #begin"):
|
if line.startswith(" #begin"):
|
||||||
fileContent.insert(index, userTemplate)
|
fileContent.insert(index, userTemplate)
|
||||||
|
|
||||||
readWriteFileDescriptor = open("users.nix", "w")
|
readWriteFileDescriptor = open("/etc/nixos/users.nix", "w")
|
||||||
operationResult = readWriteFileDescriptor.writelines(fileContent)
|
operationResult = readWriteFileDescriptor.writelines(fileContent)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue