Merge "Do not export REG_HALT_UNREGISTER between hook scripts"
This commit is contained in:
commit
b0e809cbca
@ -15,6 +15,12 @@ set -o pipefail
|
|||||||
# debugging purposes so you can check the portal or satellite to see what was
|
# debugging purposes so you can check the portal or satellite to see what was
|
||||||
# registered. Set REG_HALT_UNREGISTER to any non-null value to enable this
|
# registered. Set REG_HALT_UNREGISTER to any non-null value to enable this
|
||||||
# functionality.
|
# functionality.
|
||||||
if [ -z "${REG_HALT_UNREGISTER:-}" ]; then
|
case "${REG_METHOD:-}" in
|
||||||
subscription-manager unregister
|
portal | satellite)
|
||||||
fi
|
if [ -z "${REG_HALT_UNREGISTER:-}" ]; then
|
||||||
|
subscription-manager unregister
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
disable)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
@ -102,7 +102,6 @@ case "${REG_METHOD:-}" in
|
|||||||
;;
|
;;
|
||||||
disable)
|
disable)
|
||||||
echo "Disabling RHEL registration"
|
echo "Disabling RHEL registration"
|
||||||
export REG_HALT_UNREGISTER=1 # stops attempt to unregister
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user