From bbb24702ba5d14ce69a44ed7cc31d53ef3c32809 Mon Sep 17 00:00:00 2001 From: Jan Vcelak <jan.vcelak@nic.cz> Date: Thu, 4 Jul 2013 17:27:05 +0200 Subject: [PATCH] knot.sample.conf: variable replacement fixes --- samples/Makefile.am | 4 +++- samples/knot.sample.conf.in | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/samples/Makefile.am b/samples/Makefile.am index f3ab8a55ab..73f8760ce9 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -4,7 +4,9 @@ edit = sed \ -e 's|@localstatedir[@]|$(localstatedir)|g' \ -e 's|@prefix[@]|$(prefix)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ - -e 's|@config_dir[@]|$(config_dir)|g' + -e 's|@config_dir[@]|$(config_dir)|g' \ + -e 's|@storage_dir[@]|$(storage_dir)|g' \ + -e 's|@run_dir[@]|$(run_dir)|g' knot.sample.conf: knot.sample.conf.in rm -f $@ $@.tmp diff --git a/samples/knot.sample.conf.in b/samples/knot.sample.conf.in index 806e7c9d3e..cf78741bc3 100644 --- a/samples/knot.sample.conf.in +++ b/samples/knot.sample.conf.in @@ -16,11 +16,11 @@ system { # Working directory of the server # Used to store compiled zones and PID file # default: ${sharedstatedir}/knot, configured with --with-storage - # storage "/var/lib/knot"; + # storage "@storage_dir@"; # Directory for storing run-time data # default: ${localstatedir}/run/knot, configured with --with-rundir - # rundir "/var/run/knot"; + # rundir "@run_dir@"; } interfaces { @@ -36,7 +36,7 @@ interfaces { control { # Specifies interface, syntax is exactly the same as in 'interfaces' section - # Default: $(run_dir)/knot.sock + # Default: knot.sock (relative to rundir) listen-on "knot.sock"; # As an alternative, you can use an IPv4/v6 address and port @@ -68,7 +68,7 @@ zones { # # Example slave zone # example.net { -# file "@localstatedir@/example.net.zone +# file "@storage_dir@/example.net.zone # xfr-in master0; # notify-in master0; # } -- GitLab