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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81efdb32eb63d3c32d19d6f0b370dd5472aeffb9
|
4
|
+
data.tar.gz: b9813b78b4dc15ab572efe8a211a93ed8d16a71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|
data/lib/gordon/version.rb
CHANGED
@@ -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
|
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)
|