diff --git a/scripts/3-post-setup.sh b/scripts/3-post-setup.sh index c31cdab..336e359 100755 --- a/scripts/3-post-setup.sh +++ b/scripts/3-post-setup.sh @@ -151,11 +151,11 @@ echo -ne " ------------------------------------------------------------------------- " # Remove no password sudo rights -sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers -sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers +sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# &/' /etc/sudoers +sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# &/' /etc/sudoers # Add sudo rights -sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers -sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers +sed -i '/^# %wheel ALL=(ALL) ALL/s/^# //' /etc/sudoers +sed -i '/^# %wheel ALL=(ALL:ALL) ALL/s/^# //' /etc/sudoers rm -r $HOME/ArchTitus rm -r /home/$USERNAME/ArchTitus