From 742942ae7250ff5a0e6941594ea6e3959ab0a8de Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:45:11 +0200 Subject: [PATCH] Bump stalwartlabs/mail-server from v0.8.5 to v0.9.0 (#13) * Bump stalwartlabs/mail-server from v0.8.5 to v0.9.0 Bumps stalwartlabs/mail-server from v0.8.5 to v0.9.0. --- updated-dependencies: - dependency-name: stalwartlabs/mail-server dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Update start.sh Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> * edit data version to majeur.mineur (remove .patch) Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> * Add upgrade section Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> * Fix dependabot.yml Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> --- .github/dependabot.yml | 3 +-- Dockerfile | 2 +- README.md | 10 ++++++++++ start.sh | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 04e46be..413f5e5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,5 +13,4 @@ updates: time: "12:00" open-pull-requests-limit: 10 labels: - - 3. to review - - dependencies + - dependency diff --git a/Dockerfile b/Dockerfile index ca9f96a..0480b0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # From https://github.com/stalwartlabs/mail-server/blob/main/Dockerfile -FROM stalwartlabs/mail-server:v0.8.5 +FROM stalwartlabs/mail-server:v0.9.0 COPY --chmod=664 config.toml /opt/stalwart-mail/etc/config.toml COPY --chmod=775 start.sh /start.sh diff --git a/README.md b/README.md index 58c607e..0a2c124 100644 --- a/README.md +++ b/README.md @@ -90,3 +90,13 @@ If you're using the root user to run docker, read the script before running it. ```bash curl -s https://raw.githubusercontent.com/docjyJ/aio-stalwart/main/scripts/backup.sh | bash ``` + +### Upgrading from 0.8.x to 0.9.x + +This migration does not require any action, but the organization of the database has changed. +Be vigilant about possible data loss. + +To unlock the server blocked by the start script, run this command: +```bash +docker run --rm -v nextcloud_aio_stalwart:/opt/stalwart-mail -it --entrypoint /bin/bash stalwartlabs/mail-server:v0.9.0 -c 'echo "0.9" > /opt/stalwart-mail/aio.lock' +``` diff --git a/start.sh b/start.sh index e107d72..de7f90d 100644 --- a/start.sh +++ b/start.sh @@ -2,7 +2,7 @@ # Test data AIO_LOCK="/opt/stalwart-mail/aio.lock" -DATA_VERSION="0.8.0" +DATA_VERSION="0.9" if [ -f "$AIO_LOCK" ]; then if [ "$DATA_VERSION" != "$(cat "$AIO_LOCK")" ]; then