From e8c71f39208ae2533dacd982a7047ab412dd9b42 Mon Sep 17 00:00:00 2001 From: hidder11 Date: Sat, 31 Jan 2026 17:36:45 +0100 Subject: [PATCH] Update paths for persistent storage and bump version to 0.0.10 --- Intentor/Program.cs | 4 ++-- Intentor/appsettings.json | 2 +- Intentor/config.yaml | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Intentor/Program.cs b/Intentor/Program.cs index c05fc1f..d967b60 100644 --- a/Intentor/Program.cs +++ b/Intentor/Program.cs @@ -36,8 +36,8 @@ public class Program var app = builder.Build(); - // Ensure /data exists (Home Assistant add-on persistent storage mount) - Directory.CreateDirectory("/data"); + // Ensure persistent DB directory exists (works with non-root when /share is writable) + Directory.CreateDirectory("/share/intentor"); // Create database file + schema (no migrations tooling required) using (var scope = app.Services.CreateScope()) diff --git a/Intentor/appsettings.json b/Intentor/appsettings.json index 9c6004d..fee64f4 100644 --- a/Intentor/appsettings.json +++ b/Intentor/appsettings.json @@ -7,6 +7,6 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "IntentorDb": "Data Source=/data/intentor.db" + "IntentorDb": "Data Source=/share/intentor/intentor.db" } } diff --git a/Intentor/config.yaml b/Intentor/config.yaml index 3a2d131..976d589 100644 --- a/Intentor/config.yaml +++ b/Intentor/config.yaml @@ -1,6 +1,6 @@ name: "Intentor" description: "Intent based automation platform" -version: 0.0.9 +version: 0.0.10 slug: "intentor" init: false arch: @@ -12,5 +12,4 @@ ports: webui: "http://[HOST]:[PORT:8080]" homeassistant_api: true map: - - type: data - read_only: False \ No newline at end of file + - share:rw \ No newline at end of file