Ensure /data directory creation at startup.

This commit is contained in:
2026-01-31 17:32:15 +01:00
parent 6b1e9eef91
commit a90959cb10
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -36,6 +36,9 @@ public class Program
var app = builder.Build(); var app = builder.Build();
// Ensure /data exists (Home Assistant add-on persistent storage mount)
Directory.CreateDirectory("/data");
// Create database file + schema (no migrations tooling required) // Create database file + schema (no migrations tooling required)
using (var scope = app.Services.CreateScope()) using (var scope = app.Services.CreateScope())
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
name: "Intentor" name: "Intentor"
description: "Intent based automation platform" description: "Intent based automation platform"
version: 0.0.8 version: 0.0.9
slug: "intentor" slug: "intentor"
init: false init: false
arch: arch: