mirror of https://github.com/sipwise/netscript.git
Carrier mgmt sp2 installation failed because 'sp'
was improperly parsed in Carrier case.
See /etc/hosts on Carrier:
> x.x.x.x sp1 web01a
> x.x.x.x sp2 web01b
> x.x.x.x sp web01
and on PRO:
> x.x.x.x sp1
> x.x.x.x sp2
> x.x.x.x sp
As a result variable had multiply values:
> root@web01a:~# IP_HA_SHARED=$(awk '/sp/ { print $1 }' /etc/hosts) ; echo $IP_HA_SHARED
> 172.30.52.168 172.30.52.169 172.30.52.167
> root@web01a:~# IP_HA_SHARED=$(awk '/sp(\s|$)/ { print $1 }' /etc/hosts) ; echo $IP_HA_SHARED
> 172.30.52.167
> root@web01a:~#
Change-Id: If05eac1f0bf415db3bf5013b6452b7f9cb0e4947
(cherry picked from commit acbafb43c3
)
mr4.4
parent
526c0b9d97
commit
61631379ca
Loading…
Reference in new issue