Skip to content

Commit e7a5767

Browse files
authored
Merge pull request #2362 from david22swan/CONT-406/rstore_redhat_7_comp
(CONT-406) Fix for RHEL 7 compatibility
2 parents b0cea95 + 175d6d4 commit e7a5767

File tree

2 files changed

+441
-2
lines changed

2 files changed

+441
-2
lines changed

templates/mod/security.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
<%- end -%>
5555
SecArgumentSeparator &
5656
SecCookieFormat 0
57-
<%- if scope.lookupvar('::osfamily') == 'Debian' -%>
57+
<%- if scope['os::family'] == 'Debian' -%>
5858
SecDebugLog <%= @logroot %>/modsec_debug.log
5959
SecAuditLog <%= @logroot %>/modsec_audit.log
6060
SecTmpDir /var/cache/modsecurity
6161
SecDataDir /var/cache/modsecurity
6262
SecUploadDir /var/cache/modsecurity
63-
<%- elsif scope.lookupvar('::osfamily') == 'Suse' -%>
63+
<%- elsif scope['os::family'] == 'Suse' -%>
6464
SecDebugLog /var/log/apache2/modsec_debug.log
6565
SecAuditLog /var/log/apache2/modsec_audit.log
6666
SecTmpDir /var/lib/mod_security

0 commit comments

Comments
 (0)