Change default config file location: /var/lib/named -> /var/lib/bind
authorRalf Jung <post@ralfj.de>
Thu, 9 Oct 2014 13:05:29 +0000 (15:05 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 9 Oct 2014 13:05:29 +0000 (15:05 +0200)
CMakeLists.txt
server-scripts/update

index 58f11b7a63d27ade20c40ee4888b30bea473f6c4..6220a8cc7d4c60333fe433876d3636bca65c2714 100644 (file)
@@ -4,7 +4,7 @@ project(Dyn-NSupdate)
 FIND_PACKAGE( Boost 1.40 COMPONENTS regex REQUIRED )
 INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
 
 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")
 
 
 set(CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS} -std=c++11")
 
index 3d6331eacc9f52187839aa20e9b40d7a7f073d56..c45df300b148fb0c40c4428a7c051d59c73478c2 100755 (executable)
@@ -43,7 +43,7 @@ domain = form["domain"].value
 password = form["password"].value
 
 # run update program
 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
 (stdout, stderr) = p.communicate()
 
 # check what it did