Skip to content

Instantly share code, notes, and snippets.

@brennanfee
Last active July 11, 2016 02:23
Show Gist options
  • Save brennanfee/8a60db17308bab1d7f5e31d54d661b08 to your computer and use it in GitHub Desktop.
Save brennanfee/8a60db17308bab1d7f5e31d54d661b08 to your computer and use it in GitHub Desktop.
#!/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