dns_one 0.4.15 → 0.4.16
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 +8 -0
- 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: 46f4776bc41c27a702698697491fb1eeb30fb8e2
|
4
|
+
data.tar.gz: 32350935943b97824b6080a0f70a8a485a009f90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 419a12041cfc52799c764453de38a453a85ae4596a9a6b77e8a97022a91010ba017e3a423e17f3158ad8218e360d5104e5e5b93e4022093ba0326a7febc0a966
|
7
|
+
data.tar.gz: 52dd3a8dde11cf5c4b7f55e52f88a4864913a1b5e84045510dbefba25127fa567ed4c993f7329cafcadf63d1642feacfe8088b0a66f4698a98998754f969b7ad
|
data/lib/dns_one/setup.rb
CHANGED
@@ -14,6 +14,7 @@ module DnsOne; class Setup
|
|
14
14
|
|
15
15
|
def install
|
16
16
|
check_root
|
17
|
+
check_ruby_version
|
17
18
|
unless Util.has_systemd?
|
18
19
|
STDERR.puts "DnsOne requires systemd. Aborting install."
|
19
20
|
exit 1
|
@@ -39,6 +40,13 @@ module DnsOne; class Setup
|
|
39
40
|
|
40
41
|
private
|
41
42
|
|
43
|
+
def check_ruby_version
|
44
|
+
if RUBY_VERSION != REQUIRED_RUBY_VERSION
|
45
|
+
STDERR.puts "Currently dns_one supports #{REQUIRED_RUBY_VERSION} only. Aborting install."
|
46
|
+
exit 1
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
42
50
|
def add_user
|
43
51
|
# TODO: prompt user
|
44
52
|
system "adduser --system --no-create-home #{DnsOne::Server::DEFAULT_RUN_AS}"
|
data/lib/dns_one/version.rb
CHANGED