Evoadmin-mail is a Web Interface for manage an LDAP directory designed for mail accounts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
1.1 KiB

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Load ~/.VagrantFile if exist, permit local config provider
vagrantfile = File.join("#{Dir.home}", '.VagrantFile')
load File.expand_path(vagrantfile) if File.exists?(vagrantfile)
Vagrant.configure('2') do |config|
config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git', 'config/config.ini' ]
config.ssh.shell="/bin/sh"
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
config.vm.network "forwarded_port", guest: 443, host: 8443, auto_correct: true
$deps = <<SCRIPT
sed -e '/Rewrite/ s/^#*/#/' -i /etc/apache2/sites-available/evoadminmail.conf
service apache2 reload
[ -d /home/evoadmin-mail/www/htdocs/config ] && php /vagrant/scripts/config-migrate.php > /vagrant/config/config.ini
chmod 644 /vagrant/config/config.ini
chown vagrant:vagrant /vagrant/config/config.ini
rm -rf /home/evoadmin-mail/www/
ln -s /vagrant/ /home/evoadmin-mail/www
SCRIPT
config.vm.define :packmail do |node|
node.vm.hostname = "evoadmin-mail.example.com"
node.vm.box = "evolix/packmail"
node.vm.provision "deps", type: "shell", :inline => $deps
end
end