dns_one 0.4.33 → 0.4.34
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/server.rb +3 -4
- data/lib/dns_one/setup.rb +1 -1
- data/lib/dns_one/stat.rb +1 -1
- 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: a71e4738e469dca6259edb0d2f8cf63b758d655f
|
4
|
+
data.tar.gz: 4f625bf190b16ca76effd3d4dac4c7a763c92b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '018db44416746224cdcf73bbd5ab8a0362195cbfc24a62a2d262a7ec2ed9d924e5dba77dde4359b6b914e54bb36a66f34a9a5cc04a8400ec2f8c941b7ef96230'
|
7
|
+
data.tar.gz: ec3ae33290c5b58a58acf2beacba8850f4e8879240be891631394448c74eb0f5c40a9f207a42cf0bf00a8aece9433132602d7fae06e640799b2edb201fe65ff5
|
data/lib/dns_one/server.rb
CHANGED
@@ -26,11 +26,10 @@ module DnsOne; class Server
|
|
26
26
|
on(:start) do
|
27
27
|
if RExec.current_user == 'root'
|
28
28
|
run_as = conf[:run_as] || DEFAULT_RUN_AS
|
29
|
-
|
29
|
+
stat = Stat.new user: run_as if !stat
|
30
30
|
RExec.change_user run_as
|
31
|
-
|
32
|
-
|
33
|
-
stat = Stat.new if !stat
|
31
|
+
else
|
32
|
+
stat = Stat.new if !stat
|
34
33
|
end
|
35
34
|
Log.i "Running as #{RExec.current_user}"
|
36
35
|
end
|
data/lib/dns_one/setup.rb
CHANGED
data/lib/dns_one/stat.rb
CHANGED
@@ -117,7 +117,7 @@ module DnsOne; class Stat
|
|
117
117
|
opts = {}
|
118
118
|
opts[:readonly] = true if @conf[:readonly]
|
119
119
|
|
120
|
-
Log.i "Opening stat db #{db_file} (cwd: #{Dir.pwd})."
|
120
|
+
# Log.i "Opening stat db #{db_file} (cwd: #{Dir.pwd})."
|
121
121
|
@db = SQLite3::Database.new db_file, opts
|
122
122
|
|
123
123
|
if new_db
|
data/lib/dns_one/version.rb
CHANGED