add usermanagement

This commit is contained in:
Tobias Powalowski 2024-06-01 12:43:41 +02:00
parent 0e9993aeb0
commit 4c8373b4a3
2 changed files with 2 additions and 3 deletions

View file

@ -188,7 +188,6 @@ _configure_system() {
_run_locale_gen
elif [[ "${_FILE}" = "Basic User Configuration" ]]; then
_user_management
_set_password
else
${_EDITOR} "${_DESTDIR}""${_FILE}"
fi

View file

@ -56,12 +56,12 @@ _check_root_password() {
if chroot "${_DESTDIR}" passwd -S root | cut -d ' ' -f2 | grep -q NP; then
_dialog --no-mouse --infobox "Setup detected no password set for root user,\nplease set new password now." 6 50
sleep 3
_set_password || return 1
_set_password Root root || return 1
fi
# check if account is locked
if chroot "${_DESTDIR}" passwd -S root | cut -d ' ' -f2 | grep -q L; then
_dialog --no-mouse --infobox "Setup detected locked account for root user,\nplease set new password to unlock account now." 6 50
_set_password || return 1
_set_password Root root || return 1
fi
}