Attempt to fix version comparisons
[mirror/dsa-puppet.git] / modules / bacula / manifests / client.pp
index 05234fc..2918a79 100644 (file)
@@ -50,7 +50,7 @@ class bacula::client inherits bacula {
                require => Package['bacula-fd'],
                notify  => Service['bacula-fd'],
        }
-       if ($::lsbmajdistrelease >= '9' and $systemd) {
+       if (versioncmp($::lsbmajdistrelease, '9') >= 0 and $systemd) {
                file { '/etc/systemd/system/bacula-fd.service.d':
                        ensure  => directory,
                        mode    => '0755',