I am re-opening this, because it is not fixed properly.

As stated in the http://bugzilla.openvz.org/show_bug.cgi?id=1659#c5 it
is missing a "c" to set create_config_has_gateway properly.

I am attaching a diff for reference, but it is really a one-letter fix
probably (when ignoring the indentation issues).


Thanks,
Daniel
--- /etc/vz/dists/scripts/debian-add_ip.sh	2010-09-23 08:42:39.000000000 +0200
+++ /etc/vz/dists/scripts/debian-add_ip.sh.dpkg-new	2010-10-29 21:55:46.000000000 +0200
@@ -111,12 +111,11 @@
 	address ${ip}
 	netmask 255.255.255.255
 	broadcast 0.0.0.0" >> ${CFGFILE}.bak
-	if [ -z $create_config_has_gateway ]; then
+	    if [ -z $create_config_has_gateway ]; then
 		echo "	gateway ${FAKEGATEWAY}" >> ${CFGFILE}.bak
-		create_config_has_gateway=1
-	fi
-	echo >> ${CFGFILE}.bak
-
+		reate_config_has_gateway=1
+	    fi
+	    echo >> ${CFGFILE}.bak
 	else
 	    sed -i -e "s/netmask\ 128/netmask\ 128\n\tup ifconfig venet0 add ${ip}\/128; if \[ -x \/bin\/ip \]; then ip -6 route add default dev ${VENET_DEV}; exit 0; fi/" ${CFGFILE}.bak
 	fi

Reply via email to