diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-28 13:00:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-28 13:00:49 +0100 |
commit | 070b3fe62a0f790fb793ed22cd9b539026fa0b1f (patch) | |
tree | c1e0462350171154ea404fa24804114b8192f64a | |
parent | Usr function (diff) | |
download | arch-installer-070b3fe62a0f790fb793ed22cd9b539026fa0b1f.tar.gz arch-installer-070b3fe62a0f790fb793ed22cd9b539026fa0b1f.tar.bz2 arch-installer-070b3fe62a0f790fb793ed22cd9b539026fa0b1f.tar.xz arch-installer-070b3fe62a0f790fb793ed22cd9b539026fa0b1f.tar.zst arch-installer-070b3fe62a0f790fb793ed22cd9b539026fa0b1f.zip |
Added option for sudo usr or not
-rwxr-xr-x | joes-arch-install.sh | 20 |
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 |