From eab5a14b78f8366131bcdfc61003146cd1beb80d Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Wed, 17 Jul 2024 09:26:42 +0200 Subject: [PATCH] Minor updates in Jinja2 conditions Ubuntu doesn't use CONTROL variable. Signed-off-by: Marcus Burghardt --- .../bash/shared.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh b/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh index 309e83c9383..4ae367b611c 100644 --- a/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh +++ b/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh @@ -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 %}}