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:
parent
45925c6816
commit
c6434476e9
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user