From 61ad3457eee2366bd807d3c6b28f6885be8be18b Mon Sep 17 00:00:00 2001 From: calvinreu <52322921+calvinreu@users.noreply.github.com> Date: Sun, 18 Dec 2022 02:05:23 +0100 Subject: [PATCH] input at start (#20) move input to start --- install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 00a2d42..40308c1 100755 --- a/install.sh +++ b/install.sh @@ -417,11 +417,8 @@ EOF chmod 700 /mnt/home/${username}/.config/autostart/apparmor-notify.desktop arch-chroot /mnt chown -R $username:users /home/${username}/.config - # Setting user password. - - -[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd "$username" +[ -n "$username" ] && echo "Setting user password for ${username}." && echo -e "${password}\n${password}" | arch-chroot /mnt passwd "$username" &>/dev/null # Giving wheel user sudo access. sed -i 's/# \(%wheel ALL=(ALL\(:ALL\|\)) ALL\)/\1/g' /mnt/etc/sudoers