#!/usr/bin/env bash

set -e
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
    su - vagrant -c "bash /vagrant/build_as_vagrant.sh"
fi