From fd7ec51f7295b7364355287ad3593e35986ab7c9 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 9 Oct 2014 15:05:29 +0200 Subject: [PATCH] Change default config file location: /var/lib/named -> /var/lib/bind --- CMakeLists.txt | 2 +- server-scripts/update | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58f11b7..6220a8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(Dyn-NSupdate) FIND_PACKAGE( Boost 1.40 COMPONENTS regex REQUIRED ) INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) -set(DYNNSUPDATE_CONFIG_FILE "/some/config/file" CACHE FILEPATH "Choose the file dyn-nsupdate reads its configuration from (for security reasons, this is hard-coded in the binary)") +set(DYNNSUPDATE_CONFIG_FILE "/var/lib/bind/dyn-nsupdate.conf" CACHE FILEPATH "Choose the file dyn-nsupdate reads its configuration from (for security reasons, this is hard-coded in the binary)") set(CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS} -std=c++11") diff --git a/server-scripts/update b/server-scripts/update index 3d6331e..c45df30 100755 --- a/server-scripts/update +++ b/server-scripts/update @@ -43,7 +43,7 @@ domain = form["domain"].value password = form["password"].value # run update program -p = subprocess.Popen(["/var/lib/named/dyn-nsupdate", domain, password, ip], stdout=subprocess.PIPE, stderr=subprocess.PIPE) +p = subprocess.Popen(["/var/lib/bind/dyn-nsupdate", domain, password, ip], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdout, stderr) = p.communicate() # check what it did -- 2.30.2