Put the bus's two mounted programs under a directory the module declares, as the controller's module check requires (review round 1, C1)

This commit is contained in:
2026-10-22 10:04:31 +02:00
parent 77b89ff182
commit 91877e3421
3 changed files with 19 additions and 7 deletions
+11 -4
View File
@@ -105,17 +105,24 @@
"template": "files/nats.conf",
"mode": "0644"
},
{
"id": "state",
"type": "directory",
"mode": "0700",
"place": ".",
"unknown": "program"
},
{
"id": "program-snapshot",
"type": "archive",
"path": "/var/lib/nats-module/snapshot",
"path": "${dir:state}/snapshot",
"artifact": "snapshot",
"unknown": "program"
},
{
"id": "program-entrypoint",
"type": "archive",
"path": "/var/lib/nats-module/entrypoint",
"path": "${dir:state}/entrypoint",
"artifact": "entrypoint",
"unknown": "program"
},
@@ -131,8 +138,8 @@
"/var/lib/mesh-broker-nats:/data",
"/var/lib/nats-module/conf:/etc/nats:ro",
"${access:tls}:/tls:ro",
"/var/lib/nats-module/snapshot:/opt/mesh:ro",
"/var/lib/nats-module/entrypoint:/opt/mesh-entrypoint:ro"
"${dir:state}/snapshot:/opt/mesh:ro",
"${dir:state}/entrypoint:/opt/mesh-entrypoint:ro"
],
"args": [
"sh",