Skip to content

Commit 46f2b61

Browse files
author
Sheng Yang
committed
CLOUDSTACK-3540: Fix edithosts.sh on matching tag
1 parent 328df6f commit 46f2b61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ then
191191
echo "dhcp-optsfile=$DHCP_OPTS" >> /etc/dnsmasq.conf
192192

193193
tag=$(echo $ipv4 | tr '.' '_')
194-
sed -i /$tag/d $DHCP_OPTS
194+
sed -i /$tag,/d $DHCP_OPTS
195195
if [ "$dflt" == "0.0.0.0" ]
196196
then
197197
logger -t cloud "$0: unset default router for $ipv4"

0 commit comments

Comments
 (0)