mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
buildserver: show informative message if Vagrant is not configed
This commit is contained in:
parent
b4d25d2834
commit
9089750277
1 changed files with 7 additions and 1 deletions
8
buildserver/Vagrantfile
vendored
8
buildserver/Vagrantfile
vendored
|
@ -2,7 +2,13 @@ require 'yaml'
|
|||
require 'pathname'
|
||||
|
||||
srvpath = Pathname.new(File.dirname(__FILE__)).realpath
|
||||
configfile = YAML.load_file(File.join(srvpath, "/Vagrantfile.yaml"))
|
||||
configpath = File.join(srvpath, "/Vagrantfile.yaml")
|
||||
if File.exists? configpath
|
||||
configfile = YAML.load_file(configpath)
|
||||
else
|
||||
puts "#{configpath} does not exist, run ./makebuildserver?"
|
||||
configfile = Hash.new
|
||||
end
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue