mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
[ci skip] Ensure the /root/.ssh directory exists before copying the user's public key into the vm
This commit is contained in:
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@@ -52,6 +52,6 @@ Vagrant::configure("2") do |config|
|
||||
|
||||
if Pathname.new(PUBLIC_KEY_PATH).exist?
|
||||
config.vm.provision :file, source: PUBLIC_KEY_PATH, destination: '/tmp/id_rsa.pub'
|
||||
config.vm.provision :shell, :inline => "rm -f /root/.ssh/authorized_keys && cp /tmp/id_rsa.pub /root/.ssh/authorized_keys"
|
||||
config.vm.provision :shell, :inline => "rm -f /root/.ssh/authorized_keys && mkdir -p /root/.ssh && sudo cp /tmp/id_rsa.pub /root/.ssh/authorized_keys"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user