gordon 0.0.18 → 0.0.19

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: 3d87590c7764f529e24f1c52871bcdffee5ead48
4
- data.tar.gz: fde259d1ba4d49bbcdf2dac7f9bda775f3578c71
3
+ metadata.gz: 81efdb32eb63d3c32d19d6f0b370dd5472aeffb9
4
+ data.tar.gz: b9813b78b4dc15ab572efe8a211a93ed8d16a71c
5
5
  SHA512:
6
- metadata.gz: 1d2e6e3a9df78d4d322666d58d099d87cc5581c164d1ecfb9fa67fd4076411863bc5a8eaec44b96ceef220e77274b24cc5ebc18cf9da70b7c1d4dfe951f75617
7
- data.tar.gz: bc385de7bdf3afb5c5892468474c0a7ef8aa913ef6ef7adb76ad4a275a70ada10f7ab18bdefe51a98ae4bab62e0bda87356912cde7ed1a2dbcf7ec38abde3204
6
+ metadata.gz: 1ac8c858254d2c930b68d51a5b9a3673c272fd7163d8915b3ed469d14c8c642c0bc94c1a6efa3d7dc656829783ee975e88a12f96810ec70f142ee721d08c8045
7
+ data.tar.gz: 0d20a12b9f5735ee0b66be1a91bf853d9de39af7ff40d03c638fc5441f9621d6e359f674ce499560cd9c081e45659d1cf14463a061f387bf0fda4d4a51328e74
@@ -9,7 +9,7 @@ module Gordon
9
9
  set -e
10
10
 
11
11
  /usr/bin/getent group #{env_vars.app_name} >/dev/null || /usr/sbin/groupadd --system #{env_vars.app_name};
12
- /usr/bin/getent passwd #{env_vars.app_name} >/dev/null || /usr/sbin/useradd --system --gid #{env_vars.app_name} --home-dir #{home_path} --create-home --shell /sbin/nologin --comment "#{env_vars.app_description}" #{env_vars.app_name} >/dev/null || :;
12
+ /usr/bin/getent passwd #{env_vars.app_name} >/dev/null || mkdir -p #{File.dirname(home_path)} ; /usr/sbin/useradd --system --gid #{env_vars.app_name} --home-dir #{home_path} --create-home --shell /sbin/nologin --comment "#{env_vars.app_description}" #{env_vars.app_name} >/dev/null || :;
13
13
  __BASH
14
14
 
15
15
  f.write(bash)
@@ -1,3 +1,3 @@
1
1
  module Gordon
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
@@ -31,7 +31,7 @@ describe Gordon::Cookery::ApplicationUser do
31
31
  set -e
32
32
 
33
33
  /usr/bin/getent group #{env_vars.app_name} >/dev/null || /usr/sbin/groupadd --system #{env_vars.app_name};
34
- /usr/bin/getent passwd #{env_vars.app_name} >/dev/null || /usr/sbin/useradd --system --gid #{env_vars.app_name} --home-dir #{home_path} --create-home --shell /sbin/nologin --comment "#{env_vars.app_description}" #{env_vars.app_name} >/dev/null || :;
34
+ /usr/bin/getent passwd #{env_vars.app_name} >/dev/null || mkdir -p #{File.dirname(home_path)} ; /usr/sbin/useradd --system --gid #{env_vars.app_name} --home-dir #{home_path} --create-home --shell /sbin/nologin --comment "#{env_vars.app_description}" #{env_vars.app_name} >/dev/null || :;
35
35
  __BASH
36
36
 
37
37
  expect(file).to receive(:write).with(bash)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gordon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Pinheiro