diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 78adf86ad1cc1f054383ccb44f8bf57db6ea3e74..fb9878f3ef4aaa5bf107ec27a1b525c249454f7b 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -7,3 +7,9 @@ add_executable(confctl confctl.cpp) target_link_libraries(confctl confplus) install(TARGETS confctl DESTINATION bin) + +install(FILES + ${CMAKE_SOURCE_DIR}/src/backend.h + ${CMAKE_SOURCE_DIR}/src/conf.h + ${CMAKE_SOURCE_DIR}/src/exception.h +DESTINATION include/confplus ) diff --git a/tools/confctl.cpp b/tools/confctl.cpp index 7ac7d4197b979428de03c95e99f53889ff5da9c2..170ca12822595a07199f16852f90d2fb2aca0a9a 100644 --- a/tools/confctl.cpp +++ b/tools/confctl.cpp @@ -33,9 +33,9 @@ int main(int argc,char *argv[]){ try{ confplus::Config conf(argv[1]); - confplus::Config::ConfigData *domainkey=conf.getKey("/BLOGI/HTTP/DOMAIN"); + confplus::Config::ConfigData *domainkey=conf.getKey("/BLOGI/PLUGINDIR"); if(domainkey){ - std::cout << conf.getValue(domainkey,0) << std::endl; + std::cout << conf.getValue(domainkey,1) << std::endl; } }catch(confplus::ConfException &e){ std::cerr << e.what() << std::endl;