Skip to content

Commit

Permalink
Too much stripping breaks the code
Browse files Browse the repository at this point in the history
  • Loading branch information
teacup-on-rockingchair committed Jun 25, 2023
1 parent 4f9a9de commit d52e573
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
{{{ bash_deregexify_banner_backslash("login_banner_text") }}}
formatted=$(echo "$login_banner_text" | fold -sw 80)

{{%- if product not in ['sle15'] -%}}
{{%- if product not in ['sle15'] %}}
cat <<EOF >/etc/issue
$formatted
EOF
{{%- else -%}}
{{%- else %}}
{{{ bash_package_install("issue-generator") }}}
cat <<EOF >/etc/issue.d/99-oscap-setting
$formatted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/issue", group="root")
ocil: |-
{{{ ocil_file_group_owner(file="/etc/issue", group="root") }}}
{{%- if product in ['sle15'] -%}}
{{%- if product in ['sle15'] %}}
template:
name: file_groupowner
vars:
filepath: /etc/issue.d/
filegid: '0'
file_regex: ^.*$
recursive: 'true'
{{%- else -%}}
{{%- else %}}
template:
name: file_groupowner
vars:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/issue", owner="root") }}}'
ocil: |-
{{{ ocil_file_owner(file="/etc/issue", owner="root") }}}
{{%- if product in ['sle15'] -%}}
{{%- if product in ['sle15'] %}}
template:
name: file_owner
vars:
filepath: /etc/issue.d/
fileuid: '0'
file_regex: ^.*$
recursive: 'true'
{{%- else -%}}
{{%- else %}}
template:
name: file_owner
vars:
Expand Down

0 comments on commit d52e573

Please sign in to comment.