]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-opensuse: Fix syntax error
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 10 Mar 2014 21:33:12 +0000 (17:33 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 10 Mar 2014 21:33:12 +0000 (17:33 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-opensuse.in

index 1a3406e6b8719258b76441a8001c6de2ec688a59..3999df62dab89c3fe909593a8063f7564db31766 100644 (file)
@@ -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