inprovise 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/inprovise/channel/ssh.rb +2 -2
- data/lib/inprovise/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWVkNzEwYzZlNTI3ZGM0ZjE5NTY2ZjY5MzY5NWNhZTRiMDM2MjFiNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODJlMDRmMTBjMmYxNTEwMTMzZTRlMDY5ZjdlZDI0MGQ1NzZjOGQ3OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzEwM2RiMjdkMDMyYTBjYTgzYjFiOWZlYzU2ZjBiODM3ZjA1ZGNiMzY4MzA4
|
10
|
+
MTAwODUyNTY3ZDZiYzQwYjAzMGU1YzdjN2RlYzljZmI0YmVhM2Q1OGFjOGRi
|
11
|
+
YWIzMjYxYWM0YmM4ODQ3MjIwNzBlN2I5NDkzMzNlOTMyMzJhZWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDkzNjdhYzc0ZGNiMWVkOTIzMzAzNzhjOTVkM2UwNzNjNzRmMmEyOThhZDEz
|
14
|
+
Y2JiZTQ0ZWFjMTFhMmIyMmUwNmM5MTA3OTBmYzJhOGFlYWUyY2ZhMWIxZjEx
|
15
|
+
NzBmYWQzMjRhZjhmOGIyNjNmNzk1ODQzNDcxNzhlZGMzOGVmM2M=
|
@@ -150,12 +150,12 @@ Inprovise::CmdChannel.define('ssh') do
|
|
150
150
|
# create .ssh dir if necessary
|
151
151
|
unless exists?('./.ssh')
|
152
152
|
mkdir('./.ssh')
|
153
|
-
set_permissions('./.ssh',
|
153
|
+
set_permissions('./.ssh', 0755)
|
154
154
|
end
|
155
155
|
@node.log.remote("SFTP.APPEND: #{pubkey_path} -> ./.ssh/authorized_keys") if Inprovise.verbosity > 0
|
156
156
|
sftp.file.open('./.ssh/authorized_keys', 'a') { |f| f.puts pubkey }
|
157
157
|
# make sure the key file has the right permissions
|
158
|
-
set_permissions('./.ssh/authorized_keys',
|
158
|
+
set_permissions('./.ssh/authorized_keys', 0644)
|
159
159
|
rescue
|
160
160
|
# using the SFTP option failed, let's try a more basic approach
|
161
161
|
run('mkdir -p .ssh') # make sure the directory exists
|
data/lib/inprovise/version.rb
CHANGED