use long option name

This commit is contained in:
Patrick Schleizer 2024-12-19 05:56:50 -05:00
parent c99021bb0c
commit 175b442d5b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -73,7 +73,7 @@ https://www.kicksecure.com/wiki/root#console
fi fi
if [ "$PAM_USER" = 'sysmaint' ]; then if [ "$PAM_USER" = 'sysmaint' ]; then
sysmaint_passwd_info="$(passwd -S sysmaint 2>/dev/null)" || true sysmaint_passwd_info="$(passwd --status sysmaint 2>/dev/null)" || true
sysmaint_lock_info="$(cut -d' ' -f2 <<< "${sysmaint_passwd_info}")" sysmaint_lock_info="$(cut -d' ' -f2 <<< "${sysmaint_passwd_info}")"
if [ "${sysmaint_lock_info}" = 'L' ]; then if [ "${sysmaint_lock_info}" = 'L' ]; then
echo "$0: ERROR: Reboot and choose 'PERSISTENT mode SYSMAINT' for system maintenance. See https://www.kicksecure.com/wiki/sysmaint" echo "$0: ERROR: Reboot and choose 'PERSISTENT mode SYSMAINT' for system maintenance. See https://www.kicksecure.com/wiki/sysmaint"