#!/usr/bin/env bash

shutdown -h +60 "Timeout on VM creation"

if [ -e "/vagrant/build.sh" ]; then
    bash /vagrant/build.sh
fi

if [ -e "/vagrant/build_as_vagrant.sh" ]; then
    sudo -H -u vagrant bash /vagrant/build_as_vagrant.sh
fi
