dev: hilight magic system domain ops in support script
ansi control sequences for colors
display of chosen domain moved to show always, magic or not
in other words make the chosen magic domain visible
@@ -31,7 +31,7 @@ function create_docker_pull_secret {
function prepare_system_domain {
if [[ -z "${EPINIO_SYSTEM_DOMAIN}" ]]; then
- echo "EPINIO_SYSTEM_DOMAIN not set. Trying to use a magic domain..."
+ echo -e "\e[32mEPINIO_SYSTEM_DOMAIN not set. Trying to use a magic domain...\e[0m"
EPINIO_CLUSTER_IP=$(docker inspect k3d-epinio-acceptance-server-0 | jq -r '.[0]["NetworkSettings"]["Networks"]["epinio-acceptance"]["IPAddress"]')
if [[ -z $EPINIO_CLUSTER_IP ]]; then
echo "Couldn't find the cluster's IP address"
@@ -39,9 +39,8 @@ function prepare_system_domain {
fi
export EPINIO_SYSTEM_DOMAIN="${EPINIO_CLUSTER_IP}.omg.howdoi.website"
- else
- echo "Using ${EPINIO_SYSTEM_DOMAIN} for --system-domain"
fi
+ echo -e "Using \e[32m${EPINIO_SYSTEM_DOMAIN}\e[0m for --system-domain"
}
# Ensure we have a value for --system-domain
