mirror of https://github.com/OpenVidu/openvidu.git
openvidu-deployment: fix update.sh to handle Azure secret naming for OpenVidu version updates
parent
8dc1dd329a
commit
89fc82bfd7
|
@ -186,9 +186,15 @@ DEPLOYMENT_ENVIRONMENT="$(grep environment "${INSTALL_PREFIX}/deployment-info.ya
|
|||
if printf '%s\n%s\n' "3.2.0" "$OPENVIDU_VERSION" | sort -V -C; then
|
||||
if [ -f /usr/local/bin/store_secret.sh ] &&
|
||||
[ "$DEPLOYMENT_ENVIRONMENT" != "on_premise" ]; then
|
||||
if [ "$DEPLOYMENT_ENVIRONMENT" = "azure" ]; then
|
||||
# In Azure, the secret is named with a hyphen instead of an underscore
|
||||
echo "Updating OpenVidu version in Azure..."
|
||||
/usr/local/bin/store_secret.sh save OPENVIDU-VERSION "${OPENVIDU_VERSION}"
|
||||
else
|
||||
echo "Updating OpenVidu version in Cloud provider..."
|
||||
/usr/local/bin/store_secret.sh save OPENVIDU_VERSION "${OPENVIDU_VERSION}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "${TMP_DIR}/post-update.sh" ]; then
|
||||
|
|
Loading…
Reference in New Issue