Skip to content

Instantly share code, notes, and snippets.

View quater's full-sized avatar

Hagen Kuehn quater

View GitHub Profile
@quater
quater / install_vagrant_sudoers.sh
Last active November 10, 2015 03:24 — forked from EHLOVader/install_vagrant_sudoers.sh
Made it work with Ubuntu 14.10
#!/bin/bash
# Add Vagrant's hostupdater commands to sudoers, for `vagrant up` without a password
# force sudo on self.
if [ $( id -u ) -ne 0 ]; then
exec sudo -p "Login password for %p: " "$0" "$@"
exit $?
fi
# Stage updated sudoers in a temporary file for syntax checking