Skip to content

Commit

Permalink
Fix regex and replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
ferricoxide committed Jun 4, 2024
1 parent 3311a11 commit 1142b28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ notify_{{ stig_id }}-skipSet:
Set GRUB2 super-user to {{ grubUser }} in {{ grubUserFile }}:
file.replace:
- name: '{{ grubUserFile }}'
- pattern: '^(|\s*)(set superusers=)\".*\"'
- pattern: '^(|\s*)(set superusers)=".*"'
- repl: '\1\2="{{ grubUser }}"'
Update {{ grubCfg }} as needed:
Expand Down

0 comments on commit 1142b28

Please sign in to comment.