setup.bash: Add humbug user to sudoers.

(imported from commit 1286b358f41317ab2672c6958110a7a942b18a34)
This commit is contained in:
Tim Abbott 2012-09-13 10:58:30 -04:00
parent 67a4a2af3e
commit af4ae41c1a
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ chmod -R go-rwx /home/humbug/.ssh/
yes '' | adduser --disabled-login wiki
chmod 700 /home/{humbug,wiki}
if ! grep -q humbug /etc/sudoers; then
echo 'humbug ALL=(ALL) NOPASSWD: ALL' >>/etc/sudoers
fi
# Resize the filesystem to fill the EBS volume
resize2fs /dev/xvda1