nixos/dnsmasq: make dnsmasq --test actually test the config file (#426004)
This commit is contained in:
@@ -179,7 +179,7 @@ in
|
|||||||
touch ${stateDir}/dnsmasq.leases
|
touch ${stateDir}/dnsmasq.leases
|
||||||
chown -R dnsmasq ${stateDir}
|
chown -R dnsmasq ${stateDir}
|
||||||
${lib.optionalString cfg.resolveLocalQueries "touch /etc/dnsmasq-{conf,resolv}.conf"}
|
${lib.optionalString cfg.resolveLocalQueries "touch /etc/dnsmasq-{conf,resolv}.conf"}
|
||||||
dnsmasq --test
|
dnsmasq --test -C ${cfg.configFile}
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "dbus";
|
Type = "dbus";
|
||||||
|
|||||||
Reference in New Issue
Block a user