1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

Work when cpu count is not defined

This commit is contained in:
Ciaran Gultnieks 2015-03-23 11:28:38 +00:00
parent 45925c6816
commit c6434476e9

View File

@ -170,7 +170,7 @@ Vagrant.configure("2") do |config|
""".format(config['basebox'],
config['baseboxurl'],
config['memory'],
config['cpus'] or 1)
config.get('cpus', 1))
if 'aptproxy' in config and config['aptproxy']:
vagrantfile += """
config.vm.provision :shell, :inline => 'sudo echo "Acquire::http {{ Proxy \\"{0}\\"; }};" > /etc/apt/apt.conf.d/02proxy && sudo apt-get update'