Fix bugs - when reading from config file private network was incorrect. Also fix...
authorAndy Witter <awitter@georgialibraries.org>
Wed, 19 Feb 2014 15:04:27 +0000 (10:04 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Wed, 19 Feb 2014 15:04:27 +0000 (10:04 -0500)
GenaSYS.sh

index 693a34b..b57a00a 100755 (executable)
@@ -1154,6 +1154,7 @@ then
                Confirm_Input Get_Private_Net
        fi
 fi
+ORIGIN_PRIVATENET="$PRIVATENET"
 Write_Config_File PRIVATENET
 
 if [ -z $CLUSTERIPADDRESS ] || [ "$USE_CONFIG_FILE" == "0" ] 
@@ -1605,7 +1606,7 @@ then
        ### Reverse the DMZ net for DNS reverse zone.
        REV_DMZ_NET="${DMZ_NET_3RD}.${DMZ_NET_2ND}.${DMZ_NET_1ST}"
 
-       sed -i "s^_REV_DMZ_NET^$REV_DMZ_NET^g" "$TMPREVZONEFILE_DMZ"
+       sed -i "s^_REV_PRIVATE_NET^$REV_DMZ_NET^g" "$TMPREVZONEFILE_DMZ"
 fi
 
 ### Add lvs servers entry to the global hosts file and DNS zone file. 
@@ -2149,6 +2150,7 @@ for LVS_SERVER in $MACHINES_LVS_ONLY
        if [ "$USE_DMZ" = "y" ] || [ "$USE_DMZ" = "Y" ]
        then
                cp -f "$TMPREVZONEFILE_DMZ" "$OUTDIR/$LVS_SERVER/etc/bind/${DMZ_NET}-zone"
+               sed -i "s^_MY_HOSTNAME^$LVS_SERVER^g" "$OUTDIR/$LVS_SERVER/etc/bind/${DMZ_NET}-zone"
        fi
        sed -i "s^_MY_HOSTNAME^$LVS_SERVER^g" "$OUTDIR/$LVS_SERVER/etc/bind/${CLUSTERDOMAINNAME}-zone"
        sed -i "s^_MY_HOSTNAME^$LVS_SERVER^g" "$OUTDIR/$LVS_SERVER/etc/bind/${PRIVATENET}-zone"