#!/usr/bin/env bash

shutdown -h +30 "Timeout on VM creation"

if [ ! -f "/vagrant/build.sh" ]; then
    sudo -H -u vagrant bash /vagrant/build_as_vagrant.sh
else
    bash /vagrant/build.sh
fi