From: Ralf Jung Date: Thu, 9 Oct 2014 13:05:29 +0000 (+0200) Subject: Change default config file location: /var/lib/named -> /var/lib/bind X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/commitdiff_plain/fd7ec51f7295b7364355287ad3593e35986ab7c9 Change default config file location: /var/lib/named -> /var/lib/bind --- 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