From 4979926abd4d9516047f0b6448d87a05a291d6bf Mon Sep 17 00:00:00 2001 From: Jianhong Yin Date: Sat, 28 Dec 2024 22:43:25 +0800 Subject: [PATCH] distro-db.bash: set Intranet if it's nil Signed-off-by: Jianhong Yin --- distro-db.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distro-db.bash b/distro-db.bash index a6c5baff..12f5979b 100644 --- a/distro-db.bash +++ b/distro-db.bash @@ -92,6 +92,8 @@ CN|HK) esac #### only available in intranet +is_rh_intranet2() { grep -q redhat.com /etc/resolv.conf; } +[[ -z "$Intranet" ]] && is_rh_intranet2 && Intranet=yes if [[ "$Intranet" = yes ]]; then guestARCH=$(case $GuestARCH in (x86_64) echo amd64;;