From 46786f1ee78ad21f51aa722d4d5e1857ad3d4f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 31 Mar 2021 17:15:39 +0300 Subject: [PATCH] Install script sudo fix --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index ab3f8cda..267b25c2 100755 --- a/install.sh +++ b/install.sh @@ -14,6 +14,9 @@ if [ ! "$username" = "yigit" ]; then grep -rl "yigit" | xargs sed -i "s/yigit/$username/g" fi +# Don't prompt for a password for the rest of the script +sudo echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopwd + # Install packages echo "Running update" sudo rm -rf /etc/urlview/system.urlview @@ -168,3 +171,5 @@ git clone https://github.com/theFr1nge/simcrop.git /tmp/simcrop cd /tmp/simcrop sudo make install cd $prev + +sudo rm -rf /etc/sudoers.d/nopwd