summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-06-18 21:49:28 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-06-18 21:49:28 +0100
commit2fbed11fd832be97ac0b09b4c68444a4dc2c580c (patch)
treeb0077f8859feddb7fcc3201457f921e8df52218f
parent31bf135ebe63b98e03166eee7a084ffce970dfc6 (diff)
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.
-rw-r--r--gohan.sh5
-rw-r--r--packages.csv1
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