mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-07 14:01:06 +07:00
pam-info refactoring
This commit is contained in:
parent
caf0099064
commit
09e6af5c08
@ -41,6 +41,11 @@ if [ ! "$(id -u)" = "0" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! command -v "faillock" &>/dev/null; then
|
||||
echo "$0: The faillock program is unavailable, exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
grep_result="$(grep "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null)"
|
||||
|
||||
## Check if grep matched something.
|
||||
|
Loading…
Reference in New Issue
Block a user