Skip to content

Commit

Permalink
Fix endless reboot on FORCE upgrades (v1.2.x backport) (#1259)
Browse files Browse the repository at this point in the history
Always exit 0 if version is equal

Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti authored Feb 29, 2024
1 parent 809e3e7 commit 3476b47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions framework/files/usr/sbin/suc-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ function isActiveSystem() {
esac
fi

if [ "$FORCE" != "true" ]; then
if isEqualVersion; then
echo "Upgrade already done with release:"
cat ${HOST_DIR}${RELEASE_FILE}
if isEqualVersion; then
echo "Upgrade already done with release:"
cat ${HOST_DIR}${RELEASE_FILE}

config
exit 0
fi
config
exit 0
fi

if [ "$FORCE" != "true" ]; then
if ! isHigherVersion; then
echo "Current OS is in a higher version, use FORCE to downgrade. Current version:"
cat ${HOST_DIR}${RELEASE_FILE}
Expand Down

0 comments on commit 3476b47

Please sign in to comment.