Skip to content

Commit

Permalink
PLAT-7287 Updated singlestoredb-dev image to properly match version o…
Browse files Browse the repository at this point in the history
…n container restart. (#95)
  • Loading branch information
oyeliseiev-ua authored Jan 3, 2025
1 parent 46bed9b commit 73b0203
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ fi
# check to see if we need to switch versions at runtime
if [ -n "${SINGLESTORE_VERSION-}" ]; then
CURRENT_VERSION=$(memsqlctl -j version | jq -r '"\(.version)-\(.commitHash[0:10])"')
TARGET_VERSION="${SINGLESTORE_VERSION%%:*}"
if [ "${CURRENT_VERSION}" != "${TARGET_VERSION}" ]; then
echo "Switching SingleStore version from '${CURRENT_VERSION}' to '${TARGET_VERSION}'"
if [[ "$CURRENT_VERSION" != "$SINGLESTORE_VERSION"* ]]; then
echo "Switching SingleStore version from '${CURRENT_VERSION}' to '${SINGLESTORE_VERSION}'"
/scripts/switch-version.sh "${SINGLESTORE_VERSION}" "${SINGLESTORE_LICENSE}"
fi
fi
Expand Down

0 comments on commit 73b0203

Please sign in to comment.