From: Stéphane Graber Date: Mon, 10 Mar 2014 21:33:12 +0000 (-0400) Subject: lxc-opensuse: Fix syntax error X-Git-Tag: lxc-1.1.0.alpha1~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bc1269ba5f899ad764f89cb42fc5897198cbe20;p=thirdparty%2Flxc.git lxc-opensuse: Fix syntax error Signed-off-by: Stéphane Graber --- 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