From f2d2fe24e9cb46cf259885e81370b918936f41a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Mon, 10 Mar 2014 17:33:12 -0400 Subject: [PATCH] lxc-opensuse: Fix syntax error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- templates/lxc-opensuse.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 1a3406e6b..3999df62d 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -263,7 +263,7 @@ copy_configuration() grep -q "^lxc.network.ipv4" $path/config IPV4_NOT_CONFIGURED=$? - if [ ! grep -q "^lxc.network.*.gateway" $path/config ]; then + if ! grep -q "^lxc.network.*.gateway" $path/config; then [ $IPV4_NOT_CONFIGURED -eq 0 ] && IPV4=$(sed '/^#/d; /lxc.network.ipv4/!d; /gateway/d; s/.*=[ \t]*//; s/\([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\).*/\1/' $path/config) if [ "$TYPE" = "veth" -o "$TYPE" = "macvlan" ]; then if [ $IPV4_NOT_CONFIGURED -eq 0 -a "$IPV4" != "0.0.0.0" ]; then -- 2.47.2