Skip to content

Commit

Permalink
Issue #38 thanks to levaillx
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Oct 30, 2024
1 parent e0c9997 commit e5e2aeb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions section_1/cis_1.8/cis_1.8.2.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_2 }}
command:
Expand All @@ -7,9 +9,8 @@ command:
exit-status: 0
stdout:
- '/^user-db:user/'
- '/^system-db:user/'
- '/^system-db:gdm/'
- '/^file-db:\/usr\/share\/gdm\/greeter-dconf-defaults/'
- "/^banner-message-text=\'{{ .Vars.rhel9cis_warning_banner }}\'/"
meta:
server: 1
workstation: 1
Expand All @@ -28,9 +29,9 @@ command:
- 0
- 1
stdout:
- '/^banner-message-enable=true/'
- '!/^banner-message-enable=false/'
- "/^banner-message-text=\'{{ .Vars.rhel9cis_warning_banner }}\'/"
- '/.*:banner-message-enable=true/'
- '!/.*:banner-message-enable=false/'
- '/.*:banner-message-text=.{{ .Vars.rhel9cis_warning_banner }}./'
meta:
server: 1
workstation: 1
Expand Down

0 comments on commit e5e2aeb

Please sign in to comment.