Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit 62f3b54

Browse files
authored
Merge pull request #312 from spkane/skane-mkdir-fix
Don't error if /var/lib/coreos-vagrant directory exists already
2 parents 9f8556d + 10cbb90 commit 62f3b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Vagrantfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Vagrant.configure("2") do |config|
154154
# This shouldn't be used for the virtualbox provider (it doesn't have any effect if it is though)
155155
if File.exist?(CLOUD_CONFIG_PATH)
156156
config.vm.provision :file, :source => "#{CLOUD_CONFIG_PATH}", :destination => "/tmp/vagrantfile-user-data"
157-
config.vm.provision :shell, inline: "mkdir /var/lib/coreos-vagrant", :privileged => true
157+
config.vm.provision :shell, inline: "mkdir -p /var/lib/coreos-vagrant", :privileged => true
158158
config.vm.provision :shell, :inline => "mv /tmp/vagrantfile-user-data /var/lib/coreos-vagrant/", :privileged => true
159159
end
160160

0 commit comments

Comments
 (0)