Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
b720b116
Commit
b720b116
authored
Feb 24, 2020
by
Edita Kizinevic
Browse files
Replace host with getent function
parent
a5ef8579
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-squid
View file @
b720b116
...
...
@@ -2,7 +2,7 @@
shopt
-s
expand_aliases
SCRIPT_REVISION
=
"2020-02-2
1
, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION
=
"2020-02-2
4
, Dave Dykstra and Edita Kizinevic"
# Script does not use backupproxyurl if it is SAM test, but script uses backupproxyurl if it is pilot
includebackups
=
false
...
...
@@ -148,7 +148,7 @@ check_proxies() {
IP_addresses
=
`
getent ahostsv4
$hostname
|
awk
'/STREAM/{print $1}'
`
if
[
-z
"
$IP_addresses
"
]
;
then
IP_addresses
=
$hostname
elif
host
$hostname
|
grep
-q
"has IPv6 address"
;
then
elif
getent a
host
sv6
$hostname
|
awk
'/STREAM/{print $1}'
|
grep
-qv
^::ffff:
;
then
IP_addresses
=
"
$IP_addresses
$hostname
"
fi
for
IP_address
in
$IP_addresses
;
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment