Skip to content

Instantly share code, notes, and snippets.

View m-arrieta-r's full-sized avatar

Minor Arrieta Rojas m-arrieta-r

View GitHub Profile
#!/bin/bash
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password
# Updated to work with Vagrant 1.3.x
# Stage updated sudoers in a temporary file for syntax checking
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.