merge vish/master

This commit is contained in:
Jesse Andrews 2011-10-01 13:46:06 -07:00
commit e19f565b32

View file

@ -44,7 +44,7 @@ if [[ $EUID -eq 0 ]]; then
apt-get install -y sudo apt-get install -y sudo
if ! getent passwd | grep -q stack; then if ! getent passwd | grep -q stack; then
echo "Creating a user called stack" echo "Creating a user called stack"
useradd -G sudo -s /bin/bash -m stack useradd -U -G sudo -s /bin/bash -m stack
fi fi
echo "Making sure stack has passwordless sudo" echo "Making sure stack has passwordless sudo"
sed -i "/^%sudo/ { / ALL/ { s/ ALL/ NOPASSWD:ALL/ }}" /etc/sudoers sed -i "/^%sudo/ { / ALL/ { s/ ALL/ NOPASSWD:ALL/ }}" /etc/sudoers