Skip to content

Commit

Permalink
Warn users about 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergeek77 committed Jun 23, 2023
1 parent 94e21fc commit 57254ea
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

LED_CURRENT_VERSION="1.1.2"
LED_CURRENT_VERSION="1.1.3"

# cd to the directory the script is in
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
Expand Down Expand Up @@ -351,6 +351,23 @@ else
fi
fi

if [[ $LEMMY_VERSION == *"0.18"* ]]; then
echo ""
echo "!!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!"
echo ""
echo "UPGRADING TO 0.18.0 IS NOT ADVISED DUE TO AN UPSTREAM ISSUE:"
echo " * https://github.com/LemmyNet/lemmy/issues/3296"
echo ""
echo "This is NOT a Lemmy-Easy-Deploy issue, this is a core Lemmy issue!"
echo ""
echo "Since Lemmy performs a database migration on updates, you may not be able to downgrade!"
echo "THIS IS YOUR LAST WARNING, PRESS CTRL+C NOW TO CANCEL THIS DEPLOYMENT IF YOU DO NOT WANT TO UPDATE"
echo ""
echo "!!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!"
echo "Continuing in 20 seconds..."
sleep 20
fi

# Define default strings for docker-compose.yml
COMPOSE_CADDY_IMAGE="image: caddy:latest"
COMPOSE_LEMMY_IMAGE="image: dessalines/lemmy:${LEMMY_VERSION:?}"
Expand Down

0 comments on commit 57254ea

Please sign in to comment.