Merge pull request #439 from cdburkard/patches/sudoers

fix sudoers file to allow -u option
This commit is contained in:
Brian O'Connor
2014-11-17 16:51:14 -08:00
committed by Brian O'Connor
+1 -1
View File
@@ -6,7 +6,7 @@
#
# optional argument: Mininet branch to install
set -e
echo `whoami` ALL=NOPASSWD: ALL | sudo tee -a /etc/sudoers > /dev/null
echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers > /dev/null
sudo sed -i -e 's/Default/#Default/' /etc/sudoers
echo mininet-vm | sudo tee /etc/hostname > /dev/null
sudo sed -i -e 's/ubuntu/mininet-vm/g' /etc/hosts