From 1d4893b8bba723abd77201b0c38176f44a4c4bd5 Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Sun, 22 Sep 2013 08:09:43 -0400 Subject: [PATCH] Make RHEL subscriptions optional The code to handle RHEL subscriptions was buggy and broke if no subscription was supplied. Change-Id: Ie4f30171f716312b69d760d45f25659606dadc1f --- elements/rhel/pre-install.d/00-rhsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/rhel/pre-install.d/00-rhsm b/elements/rhel/pre-install.d/00-rhsm index cbfefb43..eb6f26d2 100755 --- a/elements/rhel/pre-install.d/00-rhsm +++ b/elements/rhel/pre-install.d/00-rhsm @@ -2,7 +2,7 @@ set -e -if [ -n $DIB_RHSM_USER ] && [ -n $DIB_RHSM_PASSWORD ] +if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ] then subscription-manager register --user $DIB_RHSM_USER --password $DIB_RHSM_PASSWORD # wait a second to ensure consumer certificate is finished writing to disk