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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7db6fd563e5dbf53544681b4ebd016d80777252f
4
- data.tar.gz: 6ce2ecbf513d1195d2a5237c8e763bba7441ccf9
3
+ metadata.gz: a8c375307b9690a8c687d748604da1c0c27db269
4
+ data.tar.gz: 187466470cbade7feebc1b46b065fcda66f6f3ff
5
5
  SHA512:
6
- metadata.gz: eeb144ad8a2543d8589e7e046f4bdc582b8b87945cbf696efbba214ce5ac4ea1d3e586bdf980453025708d123de9028cbfbfe31ea05b543efd7e0a3e465939b8
7
- data.tar.gz: c977ff9b2708cdf095fad721865d8b371e8667672565fad33d52b04caa5e3ed4eeccdab2d502d0632410f15d134f5b3ec6c6a3f7efc16fd3d8f4b266f711f148
6
+ metadata.gz: 29510f8c894d6577ffc24abb756179a4753b5abacde573ef32d979e23f219960908335b5a4f1e632ca05c31440ceb28f328e5661046384a50987530d7c30b804
7
+ data.tar.gz: 317ecb1af85192458b5e200d83425e97794ba3b76915243731f36c656c0170f8c019c58c290f8ec0183f3c439b5ac2bfe317b5bf84fb60521e1c21019a97174f
@@ -1,3 +1,6 @@
1
+ ## 0.6.7
2
+ - Use /bin/bash with -i option on command execution with user option
3
+
1
4
  ## 0.6.6
2
5
  - Fix bug on `service` resource
3
6
 
@@ -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 `700`, and it is owned by user `foo`.
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: 700
18
+ mode: 0700
19
19
  owner: foo
20
20
  ```
@@ -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 `600`, and its owner is user `foo`.
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: 600
20
+ mode: 0600
21
21
  owner: foo
22
22
  ```
@@ -17,6 +17,6 @@ resources:
17
17
  - type: remote_file
18
18
  destination: /home/foo/.ssh/authorized_keys
19
19
  source: files/authorized_keys
20
- mode: 600
20
+ mode: 0600
21
21
  owner: foo
22
22
  ```
@@ -18,6 +18,6 @@ resources:
18
18
  - type: template
19
19
  destination: /home/foo/.ssh/authorized_keys
20
20
  source: files/authorized_keys.erb
21
- mode: 600
21
+ mode: 0600
22
22
  owner: foo
23
23
  ```
@@ -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/sh -c #{Shellwords.escape(command)}"
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
@@ -1,3 +1,3 @@
1
1
  module Serverkit
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura