Skip to content

Commit

Permalink
Remove duplicated configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Dec 6, 2024
1 parent 55fff1f commit 73b8561
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@
{{{ bash_instantiate_variables("var_password_pam_retry") }}}

{{{ bash_pam_pwquality_enable() }}}
PAM_FILE_PATH=/usr/share/pam-configs/cac_pwquality
if grep -qE 'pam_pwquality\.so.*retry=[^[:space:]]' "$PAM_FILE_PATH"; then
sed -i -E '/pam_pwquality\.so/ s/\bretry=[^[:space:]]*\b ?//' "$PAM_FILE_PATH"
fi
{{{ bash_pam_pwquality_parameter_value('retry', "$var_password_pam_retry") }}}

0 comments on commit 73b8561

Please sign in to comment.