mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-25 20:58:22 -05:00
refactoring
This commit is contained in:
parent
ddb59a3b01
commit
61637a5ff0
1 changed files with 74 additions and 74 deletions
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue