Skip to content

Commit

Permalink
fix tbmq image upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-landiak committed Jan 6, 2025
1 parent 5661b2b commit 5ee1200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msa/tbmq/docker/upgrade-tbmq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ else
fromVersion="${FROM_VERSION// }"
fi

exec java -cp ${jarfile} $JAVA_OPTS -Dloader.main=org.thingsboard.mqtt.broker.ThingsboardMqttBrokerInstallApplication \
# "exec java -cp..." is wrong here since then the following lines "Saving upgrade version to file..." are not executed
java -cp ${jarfile} $JAVA_OPTS -Dloader.main=org.thingsboard.mqtt.broker.ThingsboardMqttBrokerInstallApplication \
-Dspring.jpa.hibernate.ddl-auto=none \
-Dinstall.upgrade=true \
-Dinstall.upgrade.from_version=${fromVersion} \
Expand Down

0 comments on commit 5ee1200

Please sign in to comment.