From 23e364b2989e2777b5b855b1376a401a35399a07 Mon Sep 17 00:00:00 2001 From: johackim Date: Mon, 11 Dec 2023 17:57:01 +0100 Subject: [PATCH] feat: update listmonk --- stacks/listmonk.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/stacks/listmonk.yml b/stacks/listmonk.yml index 6f3a1f76..abc31738 100644 --- a/stacks/listmonk.yml +++ b/stacks/listmonk.yml @@ -9,10 +9,16 @@ services: - /bin/sh - -c - | - # ./listmonk --install --yes # Uncomment on first deploy + echo "$$UPGRADE" + echo "Hello world" + if [ "$$INSTALL" = "true" ]; then + ./listmonk --install --yes + fi rm config.toml ./listmonk --new-config - # ./listmonk --upgrade --yes # Uncomment to upgrade + if [ "$$UPGRADE" = "true" ]; then + ./listmonk --upgrade --yes + fi ./listmonk environment: - LISTMONK_app__admin_username=${ADMIN_USERNAME:-admin} @@ -24,6 +30,8 @@ services: - POSTGRES_USER=listmonk - POSTGRES_PASSWORD=myp@ssw0rd - DB_HOST=postgres + - INSTALL=${INSTALL:-false} + - UPGRADE=${UPGRADE:-false} deploy: labels: - traefik.enable=true