Make RHEL subscriptions optional

The code to handle RHEL subscriptions was buggy and broke if no
subscription was supplied.

Change-Id: Ie4f30171f716312b69d760d45f25659606dadc1f
This commit is contained in:
Matthew Farrellee 2013-09-22 08:09:43 -04:00
parent 6ede4c2016
commit 1d4893b8bb

View File

@ -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