This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |