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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 795a688ea975c67de527b91bfdd2cca3f426af20
4
- data.tar.gz: 02faa9e2f2619392e4af9d3f3eb5f63414d4b75f
3
+ metadata.gz: a71e4738e469dca6259edb0d2f8cf63b758d655f
4
+ data.tar.gz: 4f625bf190b16ca76effd3d4dac4c7a763c92b4d
5
5
  SHA512:
6
- metadata.gz: fe87df65295c8d3b40fa31d8354b2f6871e3820ce835eb8febcd80cbfa44a66ba248578fb7ca64940d1534c013a420056af7897470506f3e55831c84cd455df4
7
- data.tar.gz: 8bd822430dccfb2f33b3894aa98f684e50318564d0d7e776b59151e68fc9be5b89bed04978270559bc898e665d945553a0feeb938478babd887a816aa3d845a5
6
+ metadata.gz: '018db44416746224cdcf73bbd5ab8a0362195cbfc24a62a2d262a7ec2ed9d924e5dba77dde4359b6b914e54bb36a66f34a9a5cc04a8400ec2f8c941b7ef96230'
7
+ data.tar.gz: ec3ae33290c5b58a58acf2beacba8850f4e8879240be891631394448c74eb0f5c40a9f207a42cf0bf00a8aece9433132602d7fae06e640799b2edb201fe65ff5
@@ -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
- stat = Stat.new user: run_as if !stat
29
+ stat = Stat.new user: run_as if !stat
30
30
  RExec.change_user run_as
31
- user = run_as
32
- else
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
@@ -19,10 +19,10 @@ module DnsOne; class Setup
19
19
  STDERR.puts "DnsOne requires systemd. Aborting install."
20
20
  exit 1
21
21
  end
22
+ add_user
22
23
  mkdirs
23
24
  #set_ruby_version
24
25
  copy_sample_conf
25
- add_user
26
26
  install_systemd_service
27
27
  setup_finished_msg
28
28
  end
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
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.33"
2
+ VERSION = "0.4.34"
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.33
4
+ version: 0.4.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato