Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fixing OMSConfig upgrade issue (#1412)
Browse files Browse the repository at this point in the history
# Since we are using same path for old package and new package,
        # In case of dsc upgrade, the package is removed as part of preuninstall event on old version.
        # It resulted in omsconfig not functioning after upgrade, if we do the uninstall before upgrade then
        # preuninstall event on the old version won't happen and omsconfig bits will not be deleted in upgrade.
  • Loading branch information
chsamala2 authored and abenbachir committed Dec 8, 2021
1 parent 461d415 commit 3b53fae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions installer/bundle/bundle_skel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,14 @@ case "$installMode" in
fi

# Update DSC
# Since we are using same path for old package and new package,
# In case of dsc upgrade, the package is removed as part of preuninstall event on old version.
# It resulted in omsconfig not functioning after upgrade, if we do the uninstall before upgrade then
# preuninstall event on the old version won't happen and omsconfig bits will not be deleted in upgrade.
if shouldInstall_omsconfig; then
echo "Removing omsconfig package as part of upgrade"
pkg_rm omsconfig
fi
shouldInstall_omsconfig
pkg_upd $DSC_PKG omsconfig $?
TEMP_STATUS=$?
Expand Down

0 comments on commit 3b53fae

Please sign in to comment.