fixing stack's passwdless sudo

This commit is contained in:
Jesse Andrews 2011-10-02 08:48:34 -07:00
parent e19f565b32
commit 6e9fae0d27

View file

@ -47,7 +47,7 @@ if [[ $EUID -eq 0 ]]; then
useradd -U -G sudo -s /bin/bash -m stack
fi
echo "Making sure stack has passwordless sudo"
sed -i "/^%sudo/ { / ALL/ { s/ ALL/ NOPASSWD:ALL/ }}" /etc/sudoers
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
echo "Copying files to stack user"
cp -r -f `pwd` /home/stack/
THIS_DIR=$(basename $(dirname $(readlink -f $0)))