dyndnsd 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/dyndnsd.rb +8 -2
- data/lib/dyndnsd/database.rb +1 -1
- data/lib/dyndnsd/helper.rb +1 -1
- data/lib/dyndnsd/updater/command_with_bind_zone.rb +2 -2
- data/lib/dyndnsd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db179e252883aaa67b13141d717f4b05fbf94855cca48818e7c21fad127f660a
|
4
|
+
data.tar.gz: 35c7ceb2ebfa157672e3c40c93309170effa583e46acd4ad94526a918235a7e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e34cb6fa4efea78da85206ba61dacfc0420121aab94bce8eb63f0947b2c0fded6b2b8cd886bda5b2d29e88a96a93ad035ea0783fa8f83683073607d6a1ebd5df
|
7
|
+
data.tar.gz: 2c50826bb39c0e043cdb6905fb2e9c5dea43bd2169045c7aba6cb095e02e84349005f2108fefb3b06d265ee5329759c31cf1475799d5c83616d93a4bbb6679e7
|
data/CHANGELOG.md
CHANGED
data/lib/dyndnsd.rb
CHANGED
@@ -112,8 +112,14 @@ module Dyndnsd
|
|
112
112
|
|
113
113
|
# drop priviliges as soon as possible
|
114
114
|
# NOTE: first change group than user
|
115
|
-
|
116
|
-
|
115
|
+
if config['group']
|
116
|
+
group = Etc.getgrnam(config['group'])
|
117
|
+
Process::Sys.setgid(group.gid) if group
|
118
|
+
end
|
119
|
+
if config['user']
|
120
|
+
user = Etc.getpwnam(config['user'])
|
121
|
+
Process::Sys.setuid(user.uid) if user
|
122
|
+
end
|
117
123
|
|
118
124
|
setup_traps
|
119
125
|
|
data/lib/dyndnsd/database.rb
CHANGED
data/lib/dyndnsd/helper.rb
CHANGED
@@ -14,7 +14,7 @@ module Dyndnsd
|
|
14
14
|
# @return [void]
|
15
15
|
def update(db)
|
16
16
|
Helper.span('updater_update') do |span|
|
17
|
-
span.set_tag('dyndnsd.updater.name', self.class.name
|
17
|
+
span.set_tag('dyndnsd.updater.name', self.class.name&.split('::')&.last || 'None')
|
18
18
|
|
19
19
|
# write zone file in bind syntax
|
20
20
|
File.open(@zone_file, 'w') { |f| f.write(@generator.generate(db)) }
|
@@ -24,7 +24,7 @@ module Dyndnsd
|
|
24
24
|
end
|
25
25
|
|
26
26
|
# detach so children don't become zombies
|
27
|
-
Process.detach(pid)
|
27
|
+
Process.detach(pid) if pid
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/dyndnsd/version.rb
CHANGED