From 611c595e57ae3df51d1aa17767c34c38eb844a98 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 12 May 2009 16:57:06 -0700 Subject: Syntax error in gateway-address template Missing fi. --- templates/system/gateway-address/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/system/gateway-address/node.def') diff --git a/templates/system/gateway-address/node.def b/templates/system/gateway-address/node.def index f41a5212..e5764c0c 100644 --- a/templates/system/gateway-address/node.def +++ b/templates/system/gateway-address/node.def @@ -5,7 +5,8 @@ update: oldgw=`/opt/vyatta/sbin/vyatta-cli-expand-var.pl '$(/system/gateway-addr if [ -n "$oldgw" ]; then vyatta-vtysh --noerror -c "configure terminal" \ -c "no ip route 0.0.0.0/0 $oldgw" - vyatta-vtysh -c "configure terminal" -c "ip route 0.0.0.0/0 $VAR(@)" + fi + vyatta-vtysh -c "configure terminal" -c "ip route 0.0.0.0/0 $VAR(@)" delete: if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl "$VAR(@)" then vyatta-vtysh -c "configure terminal" -c "no ip route 0.0.0.0/0 $VAR(@)" fi -- cgit v1.2.3