Attempt to fix version comparisons
[mirror/dsa-puppet.git] / modules / apache2 / manifests / site.pp
index ff1ee20..6d5ec55 100644 (file)
@@ -46,7 +46,7 @@ define apache2::site (
                }
        }
 
-       if $::lsbmajdistrelease <= '7' {
+       if versioncmp($::lsbmajdistrelease, '7') <= 0 {
                $symlink = "/etc/apache2/sites-enabled/${name}"
        } else {
                $symlink = "/etc/apache2/sites-enabled/${name}.conf"