diff --git a/servers/legion/k8s/listmonk/deployment.yaml b/servers/legion/k8s/listmonk/deployment.yaml index d780e05..eeb4e6e 100644 --- a/servers/legion/k8s/listmonk/deployment.yaml +++ b/servers/legion/k8s/listmonk/deployment.yaml @@ -15,10 +15,10 @@ spec: app: listmonk spec: initContainers: - # Run `--install` on first boot to create the schema; no-op on subsequent starts + # Run `--install` on first boot to create the schema; exits 0 if already installed - name: listmonk-install image: listmonk/listmonk:v4.1.0 - args: ["--install", "--yes", "--idempotent"] + command: ["/bin/sh", "-c", "./listmonk --install --yes 2>&1 | tail -5; exit 0"] env: - name: LISTMONK_db__host value: "postgres-postgresql.platform.svc.cluster.local"