Correctly reference entry key

This commit is contained in:
M. Rehan
2024-06-02 23:08:59 +05:00
parent 3968c72ff1
commit d5c3b3711a

View File

@@ -485,7 +485,7 @@ def main():
# Doing this here is important so that we cover both fresh install and upgrade case
run_command(["chmod", "-R", "u=rwX,g=,o=", f"{root}/data"])
for entry in TRUENAS_DATA_HIERARCHY:
entry_path = os.path.join(root, entry["dir_path"])
entry_path = os.path.join(root, entry["path"])
os.makedirs(entry_path, exist_ok=True)
if mode := entry.get("mode"):
mode = f"u={mode['user']},g={mode['group']},o={mode['other']}"