Last active
July 11, 2016 02:23
-
-
Save brennanfee/8a60db17308bab1d7f5e31d54d661b08 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# Bash "strict" mode | |
set -euo pipefail | |
IFS=$'\n\t' | |
apt-get update | |
apt-get install -y --no-install-recommends --reinstall virtualbox-guest-utils virtualbox-guest-dkms | |
vagrant_user_exists=$(id -u vagrant > /dev/null 2>&1; echo $?) | |
if [[ "$vagrant_user_exists" -eq "1" ]]; then | |
usermod -a -G vboxsf vagrant | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment