CLOUDSTACK-3540: Fix edithosts.sh on matching tag

This commit is contained in:
Sheng Yang 2014-06-27 17:16:56 -07:00
parent d5fea10222
commit 563934c989

View File

@ -191,7 +191,7 @@ then
echo "dhcp-optsfile=$DHCP_OPTS" >> /etc/dnsmasq.conf echo "dhcp-optsfile=$DHCP_OPTS" >> /etc/dnsmasq.conf
tag=$(echo $ipv4 | tr '.' '_') tag=$(echo $ipv4 | tr '.' '_')
sed -i /$tag/d $DHCP_OPTS sed -i /$tag,/d $DHCP_OPTS
if [ "$dflt" == "0.0.0.0" ] if [ "$dflt" == "0.0.0.0" ]
then then
logger -t cloud "$0: unset default router for $ipv4" logger -t cloud "$0: unset default router for $ipv4"