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 +++-- packages.csv | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) 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 diff --git a/packages.csv b/packages.csv index 0ef4382..8715258 100644 --- a/packages.csv +++ b/packages.csv @@ -4,7 +4,6 @@ ,libx11,is a dependency when compiling some software ,libxft,is a dependency when compiling some software ,openssh,is a premier connectivity tool for remote login with the SSH protocol -,sudo,allows users to run commands as root ,terminus-font,is a monospace font that can be used in st ,xorg-server,is the display server ,xorg-xinit,will allow us to start the display server -- cgit v1.2.3-13-gbd6f