summaryrefslogtreecommitdiff
path: root/templates/rsyslog.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/rsyslog.conf.erb')
-rw-r--r--templates/rsyslog.conf.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/rsyslog.conf.erb b/templates/rsyslog.conf.erb
index 0339ef9..446c91e 100644
--- a/templates/rsyslog.conf.erb
+++ b/templates/rsyslog.conf.erb
@@ -35,7 +35,7 @@ $IncludeConfig <%= scope.lookupvar('rsyslog::rsyslog_d') -%>*.conf
#
# Emergencies are sent to everybody logged in.
#
-<% if scope.lookupvar('rsyslog::v8plus') == true -%>
+<% if @rsyslog_version.split('.')[0].to_i >= 8 -%>
*.emerg :omusrmsg:*
<% else -%>
*.emerg *