Replaced relative users file path with absolute

This commit is contained in:
Illia Chub 2021-06-23 20:45:25 +03:00
parent 2885fe4356
commit db726b82e2

View file

@ -66,7 +66,7 @@ def upgradeSystem():
@app.route("/createUser", methods=["POST"])
def createUser():
readOnlyFileDescriptor = open("users.nix", "r")
readOnlyFileDescriptor = open("/etc/nixos/users.nix", "r")
fileContent = list()
index = int(0)