Skip to content

Commit

Permalink
distro-db.bash: set Intranet if it's nil
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhong Yin <[email protected]>
  • Loading branch information
tcler committed Dec 28, 2024
1 parent 04c1ae6 commit 4979926
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distro-db.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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;;
Expand Down

0 comments on commit 4979926

Please sign in to comment.