From 2fbed11fd832be97ac0b09b4c68444a4dc2c580c Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 18 Jun 2020 21:49:28 +0100 Subject: Install sudo and configure it before other packages AUR requires user to use sudo in order to install packages so sudo needs to have already been installed. --- gohan.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gohan.sh') diff --git a/gohan.sh b/gohan.sh index eb1b9ce..89c84e7 100644 --- a/gohan.sh +++ b/gohan.sh @@ -107,6 +107,7 @@ install_from_github() { } configure_sudo() { + install_from_pacman sudo [ -f /etc/sudoers ] && sed -i "s/# %wheel ALL=(ALL) NOPASSWORD: ALL/%wheel ALL=(ALL) NOPASSWORD: ALL/" /etc/sudoers } @@ -124,10 +125,10 @@ preinstall_msg || error "User exited." add_user || error "Error adding username and/or password." +configure_sudo + install_dotfiles $dotfilesrepo "/home/$name/.local/src/dotfiles" install_software -configure_sudo() - clear -- cgit v1.2.3-13-gbd6f