Add a warning in satellite configuration

Add a warning in satellite configuration as when no activation_key
is provided and no environment is configured, subscription-manager
might hang as it's prompting the user to provide the missing
parameter.

Change-Id: I9564841ca845eafc2bd39be6b05bef62e8062f28
This commit is contained in:
David Hill 2022-06-13 20:38:48 -04:00
parent 975522472a
commit 49285db4d3

View File

@ -129,6 +129,9 @@ case "${REG_METHOD:-}" in
fi
;;
satellite)
if [ -z "${REG_ACTIVATION_KEY}" -a -z "${REG_ENVIRONMENT}" ]; then
echo "WARNING: subscription-manager register might hang if REG_ACTIVATION_KEY and REG_ENVIRONMENT are not provided."
fi
# Save an unmodified copy of the repo list for logging
user_repos=$repos
repos="$repos --enable ${satellite_repo}"