1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00
mailinabox/tests/vagrant/preloaded/Vagrantfile
2020-09-30 13:33:40 -04:00

20 lines
426 B
Ruby

Vagrant.configure("2") do |config|
config.vm.synced_folder "../../..", "/mailinabox", id: "mailinabox", automount: false
config.vm.define "preloaded-ubuntu-bionic64" do |m1|
m1.vm.box = "ubuntu/bionic64"
m1.vm.provision :shell, :inline => <<-SH
cd /mailinabox
tests/vagrant/preloaded/prepvm.sh --no-dry-run
rc=$?
echo "$rc" > "tests/vagrant/preloaded/prepcode.txt"
[ $rc -gt 0 ] && exit 1
exit 0
SH
end
end