diff --git a/install.sh b/install.sh index ebea70f..44b59d4 100644 --- a/install.sh +++ b/install.sh @@ -277,17 +277,15 @@ arch-chroot /mnt /bin/bash -e </dev/null + #Creating wheel user + read -r -p "Please choose an admin user to create: " USER + echo "Creating user $USER" + useradd -m -g wheel $USER + passwd $USER EOF -#Creating Wheel user -read -r -p "Please choose an admin user to create: " USER - -# Create user -echo "Creating user $USER" -useradd -m -g wheel $USER -passwd $USER - -sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /etc/sudoers +#Giving wheel user sudo access +sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /mnt/etc/sudoers # Enabling auto-trimming service. systemctl enable fstrim.timer --root=/mnt &>/dev/null