]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix version comparison
authorReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Fri, 6 Jan 2017 06:03:04 +0000 (07:03 +0100)
committerReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sat, 7 Jan 2017 01:47:16 +0000 (02:47 +0100)
Signed-off-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
templates/lxc-fedora.in

index 6beb2a0f3292f43b2080cbf89813be20d54622e8..c94940c129e4444cd8fea5f79babd86de6a1ce0b 100644 (file)
@@ -540,7 +540,7 @@ download_fedora()
     CHROOT_CMD=
     INSTALL_ROOT=${setup_rootfs}
 
-    if [ ! "${is_fedora}" ] || [ "${fedora_host_ver}" <= "${FEDORA_VERSION_MINIMAL}" ]
+    if [ ! "${is_fedora}" ] || [ "${fedora_host_ver}" -lt "${FEDORA_VERSION_MINIMAL}" ]
     then
         # if this is not a supported Fedora host, use minimal bootstrap chroot
         echo "Non-Fedora host detected. Checking for bootstrap environment ... "