diff --git a/Gemfile b/Gemfile index dcbca6a..d03ec83 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,10 @@ source 'https://rubygems.org' group :development do gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git', tag: "v2.2.18" + # gem "vagrant-libvirt" + # gem "vagrant-reload" + # gem "vagrant-timezone" + # gem "vagrant-vmware-desktop" end group :plugins do diff --git a/Gemfile.lock b/Gemfile.lock index 29fa6ab..69a0c62 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -28,7 +28,7 @@ GIT PATH remote: . specs: - vagrant-k3s (0.1.0) + vagrant-k3s (0.1.1) GEM remote: https://rubygems.org/ diff --git a/lib/vagrant-k3s/provisioner.rb b/lib/vagrant-k3s/provisioner.rb index 7050452..7c9cb6c 100644 --- a/lib/vagrant-k3s/provisioner.rb +++ b/lib/vagrant-k3s/provisioner.rb @@ -131,7 +131,7 @@ def with_file_upload(name='vagrant-k3s-provisioner', to, content) tmpdir = @machine.guest.capability :create_tmp_path, {:type => :directory} tmpfile = [tmpdir, File.basename(to)].join('/') @machine.communicate.upload(from, tmpfile) - @machine.communicate.sudo("mv -f #{tmpfile} #{to}") + @machine.communicate.sudo("mkdir -p #{File.dirname(to)} && mv -f #{tmpfile} #{to}") end to end diff --git a/lib/vagrant-k3s/version.rb b/lib/vagrant-k3s/version.rb index 369b11b..f6090c6 100644 --- a/lib/vagrant-k3s/version.rb +++ b/lib/vagrant-k3s/version.rb @@ -2,6 +2,6 @@ module VagrantPlugins module K3s - VERSION = '0.1.0' + VERSION = '0.1.1' end end