debugging

This commit is contained in:
Patrick Schleizer 2022-11-24 06:24:14 -05:00
parent 97722d1926
commit e06b173a1b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -3,6 +3,16 @@
## Copyright (C) 2022 - 2022 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
true "$0: START PHASE 1"
if test -f /etc/pam-info-debug || test -f /usr/local/etc/pam-info-debug ; then
set -x
exec 5>&1 1>> ~/pam-info-debug.txt
exec 6>&2 2>> ~/pam-info-debug.txt
fi
true "$0: START PHASE 2"
if ! command -v "/usr/sbin/faillock" &>/dev/null; then
true "$0: ERROR: The faillock program is unavailable, exiting."
exit 2