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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edc9676548e252a84602c073f756a77aafef316b
4
- data.tar.gz: 06303bb4e84bc690d5587f791a3bf35eec32cf4e
3
+ metadata.gz: 8ee1674607431525c597f5868a005f4d09b45d38
4
+ data.tar.gz: 787df7c42e70f06d5b9a89b9f1540ae42e4525ef
5
5
  SHA512:
6
- metadata.gz: ee0b2d4f9e4192a201841de18afd47185600499901e08ff3703e9b864f87c138d6e137224e5a493ec19071eb34a2d29f68aad0b52fc20400edf9efbb51be8812
7
- data.tar.gz: 31b8e4ae1e096ae736480480ba1464a529187632cad622f9cd38cf7bd80006206e8bb04931ec00a529f90b15c06319084445d68c5fb32e724f3bb0640932b75d
6
+ metadata.gz: 5ace0dc644fa6e0421b9366d41dbe53527b481c01e53f310473d988d529c6b4047b4638afe3f4f0bbc889207c61121f0b638102919cb0a14a47703c33fda80aa
7
+ data.tar.gz: 86b8443f053cc193ee11d7fac4233f5d4a97d9dc8612b87c5a34b374a15c5a422e3f4810ad515629d6f2c018764f9a692d9b949d51063616f7cb4bb1e178cb00
@@ -49,8 +49,12 @@ module DnsOne; class Setup
49
49
  end
50
50
 
51
51
  def add_user
52
- # TODO: prompt user
53
- system "adduser --system --no-create-home #{Server::DEFAULT_RUN_AS}"
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
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.19"
2
+ VERSION = "0.4.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.19
4
+ version: 0.4.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato