mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-20 21:39:44 +00:00
Replaced relative users file path with absolute
This commit is contained in:
parent
2885fe4356
commit
db726b82e2
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -66,7 +66,7 @@ def upgradeSystem():
|
||||||
|
|
||||||
@app.route("/createUser", methods=["POST"])
|
@app.route("/createUser", methods=["POST"])
|
||||||
def createUser():
|
def createUser():
|
||||||
readOnlyFileDescriptor = open("users.nix", "r")
|
readOnlyFileDescriptor = open("/etc/nixos/users.nix", "r")
|
||||||
fileContent = list()
|
fileContent = list()
|
||||||
index = int(0)
|
index = int(0)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue