mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-12-04 07:01:32 -05:00
Merge 162f026966
into 9f56c5b0e2
This commit is contained in:
commit
581225cc27
19
install.sh
19
install.sh
@ -96,15 +96,25 @@ disk_prompt (){
|
|||||||
}
|
}
|
||||||
|
|
||||||
username_prompt (){
|
username_prompt (){
|
||||||
output 'Enter your username:'
|
output 'Please enter the name for a user account:'
|
||||||
read -r username
|
read -r username
|
||||||
|
|
||||||
if [ -z "${username}" ]; then
|
if [ -z "${username}" ]; then
|
||||||
output 'You need to enter a username.'
|
output 'Sorry, You need to enter a username.'
|
||||||
username_prompt
|
username_prompt
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fullname_prompt (){
|
||||||
|
output 'Please enter the full name for the user account:'
|
||||||
|
read -r fullname
|
||||||
|
|
||||||
|
if [ -z "${fullname}" ]; then
|
||||||
|
output 'Please enter the full name of the users account.'
|
||||||
|
fullname_prompt
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
user_password_prompt () {
|
user_password_prompt () {
|
||||||
output 'Enter your user password (the password will not be shown on the screen):'
|
output 'Enter your user password (the password will not be shown on the screen):'
|
||||||
read -r -s user_password
|
read -r -s user_password
|
||||||
@ -169,6 +179,7 @@ luks_prompt
|
|||||||
luks_password_prompt
|
luks_password_prompt
|
||||||
disk_prompt
|
disk_prompt
|
||||||
username_prompt
|
username_prompt
|
||||||
|
fullname_prompt
|
||||||
user_password_prompt
|
user_password_prompt
|
||||||
hostname_prompt
|
hostname_prompt
|
||||||
network_daemon_prompt
|
network_daemon_prompt
|
||||||
@ -544,8 +555,8 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
|||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
# Adding user with sudo privilege
|
# Adding user with sudo privilege
|
||||||
useradd -m $username
|
useradd -c "$fullname" -m "$username"
|
||||||
usermod -aG wheel $username
|
usermod -aG wheel "$username"
|
||||||
|
|
||||||
if [ "${install_mode}" = 'desktop' ]; then
|
if [ "${install_mode}" = 'desktop' ]; then
|
||||||
# Setting up dconf
|
# Setting up dconf
|
||||||
|
Loading…
Reference in New Issue
Block a user