mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
Revert vagrantfile to upstream config
This commit is contained in:
parent
3dfdb9a309
commit
4a85250242
28
Vagrantfile
vendored
28
Vagrantfile
vendored
@ -1,12 +1,11 @@
|
|||||||
|
|
||||||
# -*- mode: ruby -*-
|
# -*- mode: ruby -*-
|
||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
# Recreate our conditions
|
config.vm.box = "debian/buster64"
|
||||||
config.vm.box = "generic/debian10"
|
config.vm.provider :virtualbox do |vb|
|
||||||
config.vm.provider "hyperv" do |v|
|
vb.customize ["modifyvm", :id, "--cpus", 1, "--memory", 1024]
|
||||||
v.memory = 1024
|
|
||||||
v.cpus = 1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Network config: Since it's a mail server, the machine must be connected
|
# Network config: Since it's a mail server, the machine must be connected
|
||||||
@ -24,24 +23,9 @@ Vagrant.configure("2") do |config|
|
|||||||
export PUBLIC_IP=auto
|
export PUBLIC_IP=auto
|
||||||
export PUBLIC_IPV6=auto
|
export PUBLIC_IPV6=auto
|
||||||
export PRIMARY_HOSTNAME=auto
|
export PRIMARY_HOSTNAME=auto
|
||||||
#export SKIP_NETWORK_CHECKS=1
|
export SKIP_NETWORK_CHECKS=1
|
||||||
|
|
||||||
if [ ! git ]
|
|
||||||
then
|
|
||||||
apt update
|
|
||||||
apt install git
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d /mailinabox ];
|
|
||||||
then
|
|
||||||
git clone https://github.com/ddavness/power-mailinabox.git /mailinabox
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start the setup script.
|
# Start the setup script.
|
||||||
cd /mailinabox
|
cd /vagrant
|
||||||
git checkout development
|
|
||||||
git pull
|
|
||||||
|
|
||||||
setup/start.sh
|
setup/start.sh
|
||||||
SH
|
SH
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user