serverkit 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/doc/resource_directory.md +2 -2
- data/doc/resource_file.md +2 -2
- data/doc/resource_remote_file.md +1 -1
- data/doc/resource_template.md +1 -1
- data/lib/serverkit/resources/base.rb +1 -1
- data/lib/serverkit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c375307b9690a8c687d748604da1c0c27db269
|
4
|
+
data.tar.gz: 187466470cbade7feebc1b46b065fcda66f6f3ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29510f8c894d6577ffc24abb756179a4753b5abacde573ef32d979e23f219960908335b5a4f1e632ca05c31440ceb28f328e5661046384a50987530d7c30b804
|
7
|
+
data.tar.gz: 317ecb1af85192458b5e200d83425e97794ba3b76915243731f36c656c0170f8c019c58c290f8ec0183f3c439b5ac2bfe317b5bf84fb60521e1c21019a97174f
|
data/CHANGELOG.md
CHANGED
data/doc/resource_directory.md
CHANGED
@@ -9,12 +9,12 @@
|
|
9
9
|
|
10
10
|
## Example
|
11
11
|
This recipe ensures a directory exists at `/home/foo/.ssh` on a remote host,
|
12
|
-
and its mode is `
|
12
|
+
and its mode is `0700`, and it is owned by user `foo`.
|
13
13
|
|
14
14
|
```yaml
|
15
15
|
resources:
|
16
16
|
- type: directory
|
17
17
|
path: /home/foo/.ssh
|
18
|
-
mode:
|
18
|
+
mode: 0700
|
19
19
|
owner: foo
|
20
20
|
```
|
data/doc/resource_file.md
CHANGED
@@ -10,13 +10,13 @@
|
|
10
10
|
|
11
11
|
## Example
|
12
12
|
This recipe ensures a file exists at `/home/foo/.ssh/authorized_keys` on a remote host
|
13
|
-
with specified content, and its mode is `
|
13
|
+
with specified content, and its mode is `0600`, and its owner is user `foo`.
|
14
14
|
|
15
15
|
```yaml
|
16
16
|
resources:
|
17
17
|
- type: file
|
18
18
|
path: /home/foo/.ssh/authorized_keys
|
19
19
|
content: ...
|
20
|
-
mode:
|
20
|
+
mode: 0600
|
21
21
|
owner: foo
|
22
22
|
```
|
data/doc/resource_remote_file.md
CHANGED
data/doc/resource_template.md
CHANGED
@@ -233,7 +233,7 @@ module Serverkit
|
|
233
233
|
command = "cd && #{command}"
|
234
234
|
end
|
235
235
|
unless user.nil?
|
236
|
-
command = "sudo -H -u #{user} -- /bin/
|
236
|
+
command = "sudo -H -u #{user} -i -- /bin/bash -i -c #{Shellwords.escape(command)}"
|
237
237
|
end
|
238
238
|
backend.run_command(command)
|
239
239
|
end
|
data/lib/serverkit/version.rb
CHANGED