diff options
| author | MYerouPaleBlue <[email protected]> | 2022-09-04 20:49:52 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-04 10:49:52 -0700 |
| commit | 228ebe329d18cba6a1dcd70dc0dc79d352597a70 (patch) | |
| tree | f99727e5fe0ccdb717cf33af798dac289d0ee17f | |
| parent | 217592aa184d5a8017db43ec56fce7e5c9cb8f63 (diff) | |
| download | caprover-one-click-apps-228ebe329d18cba6a1dcd70dc0dc79d352597a70.tar.gz caprover-one-click-apps-228ebe329d18cba6a1dcd70dc0dc79d352597a70.zip | |
Fix Listmonk one-click app (wiping DB every time) (#708)
Currently, every time the container is restarted the DB is wiped-out!
This is due to `idempotent = false` by default (doc: "make --install run only if the database isn't already setup"). Setting ` --idempotent` ensures that DB will be initialized only if empty (i.e. the first time).
[source 1](https://github.com/knadh/listmonk/blob/57dbb9e5dbf11b40ad97bbdfe3c39bb9119baea7/cmd/init.go#L108), [source 2](https://github.com/knadh/listmonk/blob/e99c8ed86b71bbcf8bfb2e5361147cec7137cf75/cmd/install.go#L26), [source 3](https://github.com/knadh/listmonk/blob/e99c8ed86b71bbcf8bfb2e5361147cec7137cf75/cmd/install.go#L46)
| -rw-r--r-- | public/v4/apps/listmonk.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/v4/apps/listmonk.yml b/public/v4/apps/listmonk.yml index f02651a..5f64f89 100644 --- a/public/v4/apps/listmonk.yml +++ b/public/v4/apps/listmonk.yml @@ -27,7 +27,7 @@ services: containerHttpPort: 9000 dockerfileLines: - FROM listmonk/listmonk:$$cap_listmonk_version - - CMD yes | ./listmonk --install && ./listmonk + - CMD yes | ./listmonk --install --idempotent && ./listmonk volumes: - $$cap_appname-data:/listmonk depends_on: |
