#!/bin/bash # Lets be clever and pull the environment variables stored in our Homestead.yaml # Those are written to /home/vagrant/.profile, so we can can just parse them # From there and ensure we have them available as root for provosioning. ENVARS="$(mktemp)" grep export /home/vagrant/.profile |while read -r line; do echo "$line" >> $ENVARS done source $ENVARS