refactoring

This commit is contained in:
Patrick Schleizer 2025-11-10 02:15:30 -05:00
parent ddb59a3b01
commit 61637a5ff0
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -28,7 +28,8 @@ if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
fi fi
true 'INFO: Running in sysmaint session and logging into sysmaint account, allowing authentication to proceed.' true 'INFO: Running in sysmaint session and logging into sysmaint account, allowing authentication to proceed.'
exit 0 exit 0
else fi
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
printf '%s\n' 'ERROR: Failed to get user list!' printf '%s\n' 'ERROR: Failed to get user list!'
exit 1 exit 1
@ -105,4 +106,3 @@ else
true "INFO: Account '$PAM_USER' is not sensitive, allowing authentication to proceed." true "INFO: Account '$PAM_USER' is not sensitive, allowing authentication to proceed."
exit 0 exit 0
fi