Skip to content

Commit 2d25a01

Browse files
Fix setup_auditctl_environment macro for sle15
1 parent b222922 commit 2d25a01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shared/macros/20-test-scenarios.jinja

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ This macro changes the configuration of the audit service so that it looks like
66
{{% if product in ["fedora", "ol10", "rhel10"] %}}
77
sed -i "s%^ExecStart=.*%ExecStart=/sbin/auditctl%" /usr/lib/systemd/system/audit-rules.service
88
{{% else %}}
9-
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
9+
{{% if product == "sle15" %}}
10+
sed -i "s%^#ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
11+
{{% else %}}
12+
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
13+
{{% endif %}}
1014
{{% endif %}}
1115
{{%- endmacro -%}}
1216

0 commit comments

Comments
 (0)