From 7b40d7287eff585ec8673293bd8db4b70f521412 Mon Sep 17 00:00:00 2001 From: Reto Gantenbein Date: Fri, 6 Jan 2017 07:03:04 +0100 Subject: [PATCH] Fix version comparison Signed-off-by: Reto Gantenbein --- templates/lxc-fedora.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index 6beb2a0f3..c94940c12 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -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 ... " -- 2.47.3