Merge "Do not install N+1 release unless upgrade in progress"
This commit is contained in:
commit
5635352596
|
@ -34,6 +34,7 @@ echo "Done" >/dev/console
|
|||
|
||||
shopt -s nullglob
|
||||
|
||||
if [ "$(curl -sf http://pxecontroller:6385/v1/upgrade/$(hostname)/upgrade_in_progress 2>/dev/null)" = "true" ]; then
|
||||
# Check whether a second release is installed
|
||||
. /etc/build.info
|
||||
CURRENT_REL_DIR=rel-${SW_VERSION}
|
||||
|
@ -76,5 +77,6 @@ if [ ! -z "$OTHER_REL_DIR" ]; then
|
|||
|
||||
rm -rf $TMP_RPM
|
||||
fi
|
||||
fi
|
||||
|
||||
%end
|
||||
|
|
Loading…
Reference in New Issue