Fix SNMP upgrade scenario

Changes done to automatically upgrade SNMP,
after a system upgrade.

Closes-Bug: 1944391

Signed-off-by: Jose Infanzon <jose.infanzon@windriver.com>
Change-Id: Iefd6714d814e0071723f8321a3765bb6eabab7b3
This commit is contained in:
Jose Infanzon 2021-09-20 17:32:43 -03:00
parent 23406f3a07
commit dd5569593a

View File

@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2020 Wind River Systems, Inc.
# Copyright (c) 2020-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
@ -81,7 +81,7 @@ if [ "$ACTION" == "activate" ]; then
log "$NAME: Found application ${UPGRADE_APP_NAME}, version ${UPGRADE_APP_VERSION} at $fqpn_app"
# Confirm application is upgradable
if [[ "${UPGRADE_APP_NAME}" =~ ^(cert-manager|nginx-ingress-controller|oidc-auth-apps|platform-integ-apps)$ ]]; then
if [[ "${UPGRADE_APP_NAME}" =~ ^(cert-manager|nginx-ingress-controller|oidc-auth-apps|platform-integ-apps|snmp)$ ]]; then
log "$NAME: ${UPGRADE_APP_NAME} is a supported platform application."
else
log "$NAME: ${UPGRADE_APP_NAME} is not a supported platform application. skipping..."