7 #Fix sudoers so the PATH gets passed through, otherwise chef
8 #provisioning doesn't work.
10 export EDITOR=$0 && sudo -E visudo
13 echo "Defaults exempt_group=admin" >> $1
15 #Stick the gems bin onto root's path as well.
16 sudo echo "PATH=$PATH:/var/lib/gems/1.8/bin" >>/root/.bashrc
17 # Restart sudo so it gets the changes straight away
18 sudo /etc/init.d/sudo restart
21 sudo grep "exempt_group" /etc/sudoers -q
22 if [ "$?" -eq "1" ]; then