Skip to content

Commit

Permalink
Merge pull request #14374 from omoerbeek/rec-debian-tweaks
Browse files Browse the repository at this point in the history
Rec followup to #14265: use correct file suffix for reloading and debian tweaks
  • Loading branch information
omoerbeek authored Jun 24, 2024
2 parents c7670e3 + 2d0b368 commit a376dc3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# must support Ubuntu focal, with dpkg 1.19.7
rm_conffile /etc/powerdns/recursor.lua 5.1~

7 changes: 0 additions & 7 deletions builder-support/debian/recursor/debian-buster/recursor.lua

This file was deleted.

11 changes: 4 additions & 7 deletions builder-support/debian/recursor/debian-buster/rules
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,23 @@ override_dh_auto_configure:

override_dh_auto_install:
dh_auto_install
install -d debian/pdns-recursor/usr/share/pdns-recursor/lua-config
install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/lua-config debian/lua-config/rootkeys.lua
install -m 644 -t debian/pdns-recursor/etc/powerdns debian/recursor.lua
install -d debian/pdns-recursor/usr/share/pdns-recursor/snmp
install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/snmp RECURSOR-MIB.txt
rm -f debian/pdns-recursor/etc/powerdns/recursor.conf-dist
rm -f debian/pdns-recursor/etc/powerdns/recursor.yml-dist
@echo "\
dnssec:\n\
# validation: process\n\
# validation: process # default\n\
trustanchorfile: /usr/share/dns/root.key\n\
recursor:\n\
hint_file: /usr/share/dns/root.hints\n\
include_dir: /etc/powerdns/recursor.d\n\
lua_config_file: /etc/powerdns/recursor.lua\n\
incoming:\n\
# listen:\n\
# - 127.0.0.1\n\
# - 127.0.0.1 # default\n\
outgoing:\n\
# source_address:\n\
# - 0.0.0.0\n\
# - 0.0.0.0 # default\n\
" > debian/pdns-recursor/etc/powerdns/recursor.conf

override_dh_auto_test:
Expand Down
2 changes: 1 addition & 1 deletion pdns/recursordist/rec_channel_rec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ RecursorControlChannel::Answer luaconfig(bool broadcast)
bool dummy1{};
bool dummy2{};
pdns::rust::settings::rec::Recursorsettings settings;
auto yamlstat = pdns::settings::rec::tryReadYAML(configname + ".yml", false, dummy1, dummy2, settings, g_slog);
auto yamlstat = pdns::settings::rec::tryReadYAML(configname + g_yamlSettingsSuffix, false, dummy1, dummy2, settings, g_slog);
if (yamlstat != pdns::settings::rec::YamlSettingsStatus::OK) {
return {1, "Not reloading dynamic part of YAML configuration\n"};
}
Expand Down

0 comments on commit a376dc3

Please sign in to comment.