Skip to content

Commit

Permalink
Minor updates in Jinja2 conditions
Browse files Browse the repository at this point in the history
Ubuntu doesn't use CONTROL variable.

Signed-off-by: Marcus Burghardt <[email protected]>
  • Loading branch information
marcusburghardt committed Jul 17, 2024
1 parent 6a07d80 commit eab5a14
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

{{{ bash_instantiate_variables("var_password_hashing_algorithm_pam") }}}

{{% if 'sle' in product or 'ubuntu' in product -%}}
PAM_FILE_PATH="/etc/pam.d/common-password"
{{%- else -%}}
PAM_FILE_PATH="/etc/pam.d/system-auth"
{{%- endif %}}

{{% if 'sle' in product -%}}
PAM_FILE_PATH="/etc/pam.d/common-password"
CONTROL="required"
{{%- elif 'ubuntu' in product -%}}
PAM_FILE_PATH="/etc/pam.d/common-password"
{{%- else -%}}
PAM_FILE_PATH="/etc/pam.d/system-auth"
CONTROL="sufficient"
{{%- endif %}}

Expand Down

0 comments on commit eab5a14

Please sign in to comment.