From 3ed80839dbebdc0a2f6b7ca41c340e9a741877f1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 1 Feb 2023 09:36:43 -0500 Subject: [PATCH] Fixing upgrade notes. --- .../news/2023-01-31 - Lemmy Release v0.17.0.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/assets/news/2023-01-31 - Lemmy Release v0.17.0.md b/src/assets/news/2023-01-31 - Lemmy Release v0.17.0.md index bb86933..c731749 100644 --- a/src/assets/news/2023-01-31 - Lemmy Release v0.17.0.md +++ b/src/assets/news/2023-01-31 - Lemmy Release v0.17.0.md @@ -57,8 +57,8 @@ This upgrade requires a newer version of postgres, which **must be done manually `cd` to your lemmy docker directory and run this helper script: ``` -wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/scripts/postgres_12_to_15_upgrade.sh -sh postgres_12_to_15_upgrade.sh +sudo wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/scripts/postgres_12_to_15_upgrade.sh +sudo sh postgres_12_to_15_upgrade.sh ``` This script saves a copy of your old database as `12_15.dump.sql`. **Do not delete this file until you've followed all the instructions below, and the upgrade is complete.** @@ -72,7 +72,7 @@ Next, **manually edit** your [lemmy.hjson](https://github.com/LemmyNet/lemmy/blo # api_key: "API_KEY" } ``` -- The `rate_limit` block should be removed, as that is now in the database, and can be updated through the UI. +- The `rate_limit`, `federation`, `captcha`, and `slur_filter` blocks should be removed, as they are now in the database, and can be updated through the UI. - The site setup has removed a few fields. - See the link above for every setting. @@ -82,6 +82,13 @@ The `image` lines should look like: - `image: dessalines/lemmy:0.17.0` for lemmy - `image: dessalines/lemmy-ui:0.17.0` for lemmy-ui +- The `lemmy-ui` environment variables have changed, and should now look like: + ``` + environment: + - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536 + - LEMMY_UI_LEMMY_EXTERNAL_HOST={{ domain }} + - LEMMY_UI_HTTPS=true + ``` - You can always find the latest version [here](https://github.com/LemmyNet/lemmy-ansible/blob/main/VERSION). - Ensure that postgres is `postgres:15-alpine` (the upgrade script above should have already set this correctly)