mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-09 17:39:31 +00:00
Shifted user configuration insertion position for one line back
This commit is contained in:
parent
fe6e3c6034
commit
ff13321154
2
main.py
2
main.py
|
@ -92,7 +92,7 @@ def createUser():
|
|||
for line in fileContent:
|
||||
index += 1
|
||||
if line.startswith(" #begin"):
|
||||
fileContent.insert(index, userTemplate)
|
||||
fileContent.insert(index-1, userTemplate)
|
||||
|
||||
readWriteFileDescriptor = open("/etc/nixos/users.nix", "w")
|
||||
operationResult = readWriteFileDescriptor.writelines(fileContent)
|
||||
|
|
Loading…
Reference in a new issue