mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
feature #2391: changed variable SEARCH to SEARCH_DOMAIN
SEARCH is too generic and could be mistanken with some other ot may be used in the future for other things.
This commit is contained in:
parent
f7cae7f40d
commit
9044b6491b
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
export DNS_VARIABLES="DNS $(env | sed 's/=.*$//' | grep -E '^ETH[0-9]+_DNS$' | sort)"
|
export DNS_VARIABLES="DNS $(env | sed 's/=.*$//' | grep -E '^ETH[0-9]+_DNS$' | sort)"
|
||||||
|
|
||||||
export SEARCH_VARIABLES="SEARCH $(env | sed 's/=.*$//' | grep -E '^ETH[0-9]+_SEARCH$' | sort)"
|
export SEARCH_VARIABLES="SEARCH_DOMAIN $(env | sed 's/=.*$//' | grep -E '^ETH[0-9]+_SEARCH_DOMAIN$' | sort)"
|
||||||
|
|
||||||
nameservers=$(
|
nameservers=$(
|
||||||
for var in ${DNS_VARIABLES}; do
|
for var in ${DNS_VARIABLES}; do
|
||||||
@ -49,3 +49,4 @@ done
|
|||||||
[ -z "$searchdomains" ] && exit 0
|
[ -z "$searchdomains" ] && exit 0
|
||||||
|
|
||||||
echo search $searchdomains >> /etc/resolv.conf
|
echo search $searchdomains >> /etc/resolv.conf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user