aboutsummaryrefslogtreecommitdiffstats
path: root/joes-arch-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'joes-arch-install.sh')
-rwxr-xr-xjoes-arch-install.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/joes-arch-install.sh b/joes-arch-install.sh
index 656b3e2..c58a9d7 100755
--- a/joes-arch-install.sh
+++ b/joes-arch-install.sh
@@ -726,7 +726,8 @@ $rtpwd
sleep 2
ARCH_CHROOT_CMDS
if [ "$isusr" = true ]; then
-arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
+ if [ "$isusrsudo" = true ]; then
+ arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
sleep 2
clear
#===== V. CONFIGURING LINUX ======#
@@ -742,6 +743,23 @@ $usrpwd
sleep 2
exit
ARCH_CHROOT_CMDS
+ else
+ arch-chroot /mnt/arch << ARCH_CHROOT_CMDS
+ sleep 2
+ clear
+ #===== V. CONFIGURING LINUX ======#
+ # #
+ # 9. Generating user #
+ # #
+ #=================================#
+ useradd -m -s /bin/zsh $usr
+ passwd $usr
+$usrpwd
+$usrpwd
+ sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
+ sleep 2
+ exit
+ARCH_CHROOT_CMDS
fi
if [ "$ltskern" = false ]; then
arch-chroot /mnt/arch << ARCH_CHROOT_CMDS