dns_one 0.4.19 → 0.4.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dns_one/setup.rb +6 -2
- data/lib/dns_one/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: 8ee1674607431525c597f5868a005f4d09b45d38
|
4
|
+
data.tar.gz: 787df7c42e70f06d5b9a89b9f1540ae42e4525ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ace0dc644fa6e0421b9366d41dbe53527b481c01e53f310473d988d529c6b4047b4638afe3f4f0bbc889207c61121f0b638102919cb0a14a47703c33fda80aa
|
7
|
+
data.tar.gz: 86b8443f053cc193ee11d7fac4233f5d4a97d9dc8612b87c5a34b374a15c5a422e3f4810ad515629d6f2c018764f9a692d9b949d51063616f7cb4bb1e178cb00
|
data/lib/dns_one/setup.rb
CHANGED
@@ -49,8 +49,12 @@ module DnsOne; class Setup
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def add_user
|
52
|
-
|
53
|
-
|
52
|
+
if `cat /etc/passwd|grep ^#{Server::DEFAULT_RUN_AS}:`.strip.present?
|
53
|
+
STDOUT.puts "User #{Server::DEFAULT_RUN_AS} exists, skipping creation."
|
54
|
+
else
|
55
|
+
# TODO: prompt user
|
56
|
+
system "adduser --system --no-create-home #{Server::DEFAULT_RUN_AS}"
|
57
|
+
end
|
54
58
|
end
|
55
59
|
|
56
60
|
def set_ruby_version
|
data/lib/dns_one/version.rb
CHANGED