summaryrefslogtreecommitdiff
path: root/gohan.sh
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 /gohan.sh
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.
Diffstat (limited to 'gohan.sh')
-rw-r--r--gohan.sh5
1 files changed, 3 insertions, 2 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