mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
makebuildserver: make chef find the custom cache locations
This commit is contained in:
parent
7c30569aed
commit
b6a5978b11
1 changed files with 7 additions and 0 deletions
|
|
@ -367,6 +367,13 @@ if 'aptproxy' in config and config['aptproxy']:
|
||||||
config.vm.provision :shell, :inline => 'sudo echo "Acquire::http {{ Proxy \\"{0}\\"; }};" > /etc/apt/apt.conf.d/02proxy && sudo apt-get update'
|
config.vm.provision :shell, :inline => 'sudo echo "Acquire::http {{ Proxy \\"{0}\\"; }};" > /etc/apt/apt.conf.d/02proxy && sudo apt-get update'
|
||||||
""".format(config['aptproxy'])
|
""".format(config['aptproxy'])
|
||||||
|
|
||||||
|
# buildserver/ is shared to the VM's /vagrant by default so the old default
|
||||||
|
# does not need a custom mount
|
||||||
|
if cachedir != 'buildserver/cache':
|
||||||
|
vagrantfile += """
|
||||||
|
config.vm.synced_folder '{0}', '/vagrant/cache'
|
||||||
|
""".format(cachedir)
|
||||||
|
|
||||||
vagrantfile += """
|
vagrantfile += """
|
||||||
config.vm.provision :chef_solo do |chef|
|
config.vm.provision :chef_solo do |chef|
|
||||||
chef.cookbooks_path = "cookbooks"
|
chef.cookbooks_path = "cookbooks"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue