mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-16 14:24:29 +00:00
fix: Make sure /etc/selfprivacy exists
This commit is contained in:
parent
f06d3ee839
commit
6f07e21a92
|
@ -189,6 +189,12 @@ class MigrateToFlakes(Migration):
|
|||
print("New userdata.json generated.")
|
||||
|
||||
print("Generating /etc/selfprivacy/secrets.json")
|
||||
subprocess.check_output(
|
||||
[
|
||||
"mkdir",
|
||||
"/etc/selfprivacy",
|
||||
]
|
||||
)
|
||||
secrets_contents = {
|
||||
"databasePassword": userdata.get("databasePassword"),
|
||||
"dns": {"apiKey": userdata.get("dns", {}).get("apiKey", "INVALID")},
|
||||
|
|
Loading…
Reference in a new issue