From c3cc5136096f6fd372e630b7e9d72730d3ba1b09 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 25 Jan 2013 16:37:54 -0800 Subject: [PATCH] Create the setup_version file to track our directory layout version --- lib/vagrant/environment.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 0362a51d2..27c072902 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -498,6 +498,16 @@ module Vagrant raise Errors::HomeDirectoryNotAccessible, :home_path => @home_path.to_s end end + + # Create the version file to mark the version of the home directory + # we're using. + version_file = @home_path.join("setup_version") + if !version_file.file? + @logger.debug("Setting up the version file.") + version_file.open("w") do |f| + f.write("1.1") + end + end end # This creates the local data directory and show an error if it