guests/openbsd: add newline after insert_public_key [GH-5881]

This commit is contained in:
Mitchell Hashimoto 2015-07-05 17:10:10 -07:00
parent 36fa04fd1e
commit 67c14c4889
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ BUG FIXES:
- guests/fedora: do not use biosdevname if it is not installed [GH-5707]
- guests/freebsd: provide an argument to the backup file [GH-5516, GH-5517]
- guests/funtoo: fix incorrect path in configure networks [GH-4812]
- guests/openbsd: output newline after inserted public key [GH-5881]
- guests/tinycore: fix change hostname functionality [GH-5623]
- guests/windows: Create rsync folder prior to rsync-ing. [GH-5282]
- guests/windows: Changing hostname requires reboot again since

View File

@ -11,7 +11,7 @@ module VagrantPlugins
machine.communicate.tap do |comm|
comm.execute("mkdir -p ~/.ssh")
comm.execute("chmod 0700 ~/.ssh")
comm.execute("printf '#{contents}' >> ~/.ssh/authorized_keys")
comm.execute("printf '#{contents}\\n' >> ~/.ssh/authorized_keys")
comm.execute("chmod 0600 ~/.ssh/authorized_keys")
end
end