Ensure /data directory creation at startup.
This commit is contained in:
@@ -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,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:
|
||||||
|
|||||||
Reference in New Issue
Block a user