summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgohan.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/gohan.sh b/gohan.sh
index 1219c10..1a1c48a 100755
--- a/gohan.sh
+++ b/gohan.sh
@@ -83,6 +83,11 @@ get_username_and_password() {
done
}
+configure_sudo() {
+ install_from_pacman sudo
+ [ -f /etc/sudoers ] && sed -i "s/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers
+}
+
# Sets up the home directory for the user account.
setup_user_home_directory() {
clean_user_home_directory
@@ -119,6 +124,8 @@ install_dependancies
add_user
+configure_sudo
+
setup_user_home_directory
install_yay