From 01a1c6b0fdfc7d4a8a78dec590fc9e9779bf31ff Mon Sep 17 00:00:00 2001 From: funk-on-code <113871227+funk-on-code@users.noreply.github.com> Date: Mon, 5 Aug 2024 18:39:35 +1000 Subject: [PATCH] Add a Full Name for the Created User. Signed-off-by: funk-on-code <113871227+funk-on-code@users.noreply.github.com> --- install.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 292f9c7..820a36a 100644 --- a/install.sh +++ b/install.sh @@ -96,15 +96,25 @@ disk_prompt (){ } username_prompt (){ - output 'Enter your username:' - read -r username + output 'Please enter the name for a user account:' + read -r -p username if [ -z "${username}" ]; then - output 'You need to enter a username.' + output 'Sorry, You need to enter a username.' username_prompt fi } +fullname_prompt (){ + output 'Please enter the full name for the user account:' + read -r -p fullname + + if [ -z "${fullname}" ]; then + output 'Please enter the full name of the users account.' + fullname_prompt + fi +} + user_password_prompt () { output 'Enter your user password (the password will not be shown on the screen):' read -r -s user_password @@ -169,6 +179,7 @@ luks_prompt luks_password_prompt disk_prompt username_prompt +fullname_prompt user_password_prompt hostname_prompt network_daemon_prompt @@ -539,8 +550,8 @@ arch-chroot /mnt /bin/bash -e <