Skip to content

Commit 41bce70

Browse files
pburgisserjprovaznik
authored andcommitted
Add SYSTEM_UPDATE option for atomic hosts (#310)
* Add SYSTEM_UPDATE option for atomic hosts * Change HOST_UPDATE check higher in script
1 parent 3727d31 commit 41bce70

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fragments/host-update.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ source /usr/local/share/openshift-on-openstack/common_functions.sh
2121
# MAIN
2222
# ============================================================================
2323

24+
[ "$SYSTEM_UPDATE" = "True" ] || exit 0
25+
2426
# Check for Atomic Host
2527
if [ -e /run/ostree-booted ]
2628
then
@@ -29,5 +31,5 @@ then
2931
else
3032
# Update using traditional RPMs
3133
retry yum install -y deltarpm || notify_failure "could not install deltarpm"
32-
[ "$SYSTEM_UPDATE" = "True" ] && (retry yum -y update || notify_failure "could not update RPMs")
34+
retry yum -y update || notify_failure "could not update RPMs"
3335
fi

0 commit comments

Comments
 (0)