From 61afe42710ebf4fb65e1655c8d93698988e536c5 Mon Sep 17 00:00:00 2001 From: Erhard Rank Date: Wed, 14 Sep 2011 16:29:01 +0000 Subject: [PATCH] always use $IP1 and $IP2 instead of hardcoded IPs use configurable $IP1 and $IP2 for internal network (eth1) addresses --- deployment.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment.sh b/deployment.sh index b07e6e9..8dc128e 100755 --- a/deployment.sh +++ b/deployment.sh @@ -362,8 +362,8 @@ fi IP="$(ifdata -pa $dev)" case "$ROLE" in - sp1) INTERNAL_IP='192.168.255.251' ;; - sp2) INTERNAL_IP='192.168.255.252' ;; + sp1) INTERNAL_IP=$IP1 ;; + sp2) INTERNAL_IP=$IP2 ;; esac #if "$PRO_EDITION" ; then @@ -979,8 +979,8 @@ EOF # in the HA setup if "$PRO_EDITION" ; then cat >> $TARGET/etc/hosts << EOF -192.168.255.251 sp1 -192.168.255.252 sp2 +$IP1 sp1 +$IP2 sp2 EOF fi