-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
57 lines (45 loc) · 1.55 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "odoo-box"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.forward_port 8069, 8069
config.vm.forward_port 8169, 8169
config.vm.provision :shell do |shell|
shell.inline = "sudo apt-get install -y git-core"
end
config.vm.provision :shell do |shell|
shell.inline = "cd $1"
shell.args = %q{/home/vagrant/}
end
config.vm.provision :shell do |shell|
shell.inline = "sudo -u $1 touch clone.sh"
shell.args = %q{vagrant}
end
config.vm.provision :shell do |shell|
shell.inline = "echo $1 > clone.sh"
shell.args = %q{"#!/bin/sh"}
end
config.vm.provision :shell do |shell|
shell.inline = "echo $1 >> clone.sh"
shell.args = %q{"if [ ! -d ./odoo ]; then sudo -u vagrant git clone https://github.com/adrienpeiffer/odoo-box.git odoo;else cd ./odoo;sudo -u vagrant git reset --hard origin/master;sudo -u vagrant git pull; cd ..;fi"}
end
config.vm.provision :shell do |shell|
shell.inline = "sudo chmod u+x $1"
shell.args = %q{./clone.sh}
end
config.vm.provision :shell do |shell|
shell.inline = "./clone.sh"
end
config.vm.provision :shell do |shell|
shell.inline = "sudo chmod u+x $1"
shell.args = %q{./odoo/link.sh}
end
config.vm.provision :shell do |shell|
shell.inline = "./odoo/link.sh"
end
config.vm.provision :shell do |shell|
shell.inline = "sudo -u $1 ./install_odoo_dependencies.sh"
shell.args = %q{vagrant}
end
end