From 1a0ebd95af2ae8db844c8e4c2b62b6a7d6c47e3a Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Sun, 20 Jun 2021 14:28:37 +0300 Subject: [PATCH] Fix sourcing back_pwquality.sh from local git --- front_pwquality.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front_pwquality.sh b/front_pwquality.sh index 82a7576..7ac8251 100644 --- a/front_pwquality.sh +++ b/front_pwquality.sh @@ -6,8 +6,10 @@ set -e if [ -f ./common.sh ] && [ -f "$0" ] then source common.sh + source back_pwquality.sh else source /usr/share/linux-infosec-setupper/common.sh + source "${SHARE_DIR_PWQUALITY}/back_pwquality.sh" fi PWQUALITY_FRONT=1 @@ -115,5 +117,4 @@ done <<<"$var" | sed '/^$/d' | \ ;17s/^/--enforce_for_root / ;18s/^/--local_users_only /' | tr '\n' ' ')" -source "${SHARE_DIR_PWQUALITY}/back_pwquality.sh" _mk_pwquality_conf $var2 > "${DESTDIR}/etc/security/pwquality.conf" || { error $"Unable to write to file %s" "${DESTDIR}/etc/security/pwquality.conf"; exit 1; }