OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Generalize warning
Oliver Güntherffdade4839e9
diff --git a/docker/prod/entrypoint.sh b/docker/prod/entrypoint.shindex 8b4065cba3a..231a3b2a865 100755--- a/docker/prod/entrypoint.sh+++ b/docker/prod/entrypoint.sh@@ -33,13 +33,13 @@ if [ "$(id -u)" = '0' ]; thenEXISTING_PGVERSION="$(cat "$PGDATA/PG_VERSION")"echo "-----> Existing PostgreSQL cluster found in $PGDATA."- # Check for version mismatch: if Docker default is PG 17 but existing data is PG 13- if [ "$PGVERSION" = "17" ] && [ "$EXISTING_PGVERSION" = "13" ]; then+ # Check for version mismatch between configured and existing PostgreSQL versions+ if [ "$PGVERSION" != "$EXISTING_PGVERSION" ]; thenecho "WARNING: PostgreSQL version mismatch detected!"- echo "Your container is configured for PostgreSQL 17, but existing data is from PostgreSQL 13."- echo "You need to upgrade your postgresql data before you can use it with PGVERSION=17 in the container"+ echo "Your container is configured for PostgreSQL $PGVERSION, but existing data is from PostgreSQL $EXISTING_PGVERSION."+ echo "You need to upgrade your postgresql data before you can use it with PGVERSION=$PGVERSION in the container"echo "Please see the migration guide: https://www.openproject.org/docs/installation-and-operations/misc/migration-to-postgresql17/"- echo "Continuing with PostgreSQL 13 for now..."+ echo "Continuing with PostgreSQL $EXISTING_PGVERSION for now..."fiexport PGVERSION="$EXISTING_PGVERSION"