- echo "127.0.0.1 localhost.localdomain localhost" >/etc/hosts
- (
- for server in API BOOT WWW ; do
- hostname=PLC_${server}_HOST
+ for server in DB API BOOT WWW ; do
+ hostname=PLC_${server}_HOST
+ ip=PLC_${server}_IP
+ if [ -n "${!ip}" ] ; then
+ echo "${!ip} ${!hostname}"
+ else