specify the sudo group as addition groups - since otherwise dashboard doesn't work

This commit is contained in:
Jesse Andrews 2011-10-01 12:52:23 -07:00
parent 0b5f29c70d
commit 022ed04ea0

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 -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