Merge "Run Registration Once"

This commit is contained in:
Jenkins 2015-01-24 19:02:13 +00:00 committed by Gerrit Code Review
commit 87b4bc7d51

View File

@ -2,6 +2,12 @@
set -eu set -eu
set -o pipefail set -o pipefail
OK=/mnt/state/var/lib/rhsm/rhsm.ok
if [ -e $OK ] ; then
exit 0
fi
REG_ACTIVATION_KEY="$(os-apply-config --key rh_registration.activation_key --type raw --key-default '')" REG_ACTIVATION_KEY="$(os-apply-config --key rh_registration.activation_key --type raw --key-default '')"
REG_AUTO_ATTACH="$(os-apply-config --key rh_registration.auto_attach --type raw --key-default 'true')" REG_AUTO_ATTACH="$(os-apply-config --key rh_registration.auto_attach --type raw --key-default 'true')"
REG_BASE_URL="$(os-apply-config --key rh_registration.base_url --type raw --key-default '')" REG_BASE_URL="$(os-apply-config --key rh_registration.base_url --type raw --key-default '')"
@ -124,3 +130,6 @@ case "${REG_METHOD:-}" in
echo "WARNING: only 'portal', 'satellite', and 'disable' are valid values for REG_METHOD." echo "WARNING: only 'portal', 'satellite', and 'disable' are valid values for REG_METHOD."
exit 0 exit 0
esac esac
mkdir -p $(dirname $OK)
touch $OK