diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-28 13:10:04 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-28 13:10:04 +0100 |
commit | 55c2c023796482e648529fb2783c498792c32362 (patch) | |
tree | 276366c40e781e65a241543cfc9c8224187f8675 /joes-arch-install.sh | |
parent | Added option for sudo usr or not (diff) | |
download | arch-installer-55c2c023796482e648529fb2783c498792c32362.tar.gz arch-installer-55c2c023796482e648529fb2783c498792c32362.tar.bz2 arch-installer-55c2c023796482e648529fb2783c498792c32362.tar.xz arch-installer-55c2c023796482e648529fb2783c498792c32362.tar.zst arch-installer-55c2c023796482e648529fb2783c498792c32362.zip |
Usr can choose his shell now
Diffstat (limited to 'joes-arch-install.sh')
-rwxr-xr-x | joes-arch-install.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/joes-arch-install.sh b/joes-arch-install.sh index c58a9d7..285ba4e 100755 --- a/joes-arch-install.sh +++ b/joes-arch-install.sh @@ -261,6 +261,13 @@ jo_get_usr_config() { 6 45; then isusrsudo=true fi + usrshell=$(dialog --title "$1"\ + --menu "Choose a shell for this $usr:"\ + 10 40 3\ + "zsh" "The z shell"\ + "bash" "The bourne-against shell"\ + "sh" "The OG shell"\ + 3>&1 1>&2 2>&3 3>&-) fi } @@ -735,7 +742,7 @@ if [ "$isusr" = true ]; then # 9. Generating user # # # #=================================# - useradd -m -g wheel -s /bin/zsh $usr + useradd -m -g wheel -s /bin/$usrshell $usr passwd $usr $usrpwd $usrpwd @@ -752,7 +759,7 @@ ARCH_CHROOT_CMDS # 9. Generating user # # # #=================================# - useradd -m -s /bin/zsh $usr + useradd -m -s /bin/$usrshell $usr passwd $usr $usrpwd $usrpwd |