Skip to content

Commit

Permalink
Filesystem: move ./resources/* into KOVRI_DATA_DIR
Browse files Browse the repository at this point in the history
* Remove ./resources/
  • Loading branch information
anonimal committed Feb 22, 2016
1 parent ab35c35 commit a4aa27a
Show file tree
Hide file tree
Showing 34 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -211,9 +211,9 @@ add_subdirectory(src)

# Copy resources
if(WITH_BINARY)
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pkg/resources/certificates" DESTINATION "${KOVRI_DATA_DIR}/resources/")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pkg/resources/kovri.conf" DESTINATION "${KOVRI_DATA_DIR}/")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pkg/resources/tunnels.cfg" DESTINATION "${KOVRI_DATA_DIR}/")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pkg/certificates" DESTINATION "${KOVRI_DATA_DIR}/")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pkg/kovri.conf" DESTINATION "${KOVRI_DATA_DIR}/")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/pkg/tunnels.cfg" DESTINATION "${KOVRI_DATA_DIR}/")
endif()

# vim: noai:ts=2:sw=2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/app/util/Filesystem.cpp
Expand Up @@ -68,11 +68,11 @@ bfs::path GetTunnelsConfigFile() {
}

bfs::path GetSU3CertsPath() {
return GetDataPath() / "resources" / "certificates" / "su3";
return GetDataPath() / "certificates" / "su3";
}

bfs::path GetSSLCertsPath() {
return GetDataPath() / "resources" / "certificates" / "ssl";
return GetDataPath() / "certificates" / "ssl";
}

std::string GetFullPath(
Expand Down
4 changes: 2 additions & 2 deletions src/core/util/Filesystem.cpp
Expand Up @@ -42,11 +42,11 @@ namespace filesystem {
namespace bfs = boost::filesystem;

bfs::path GetSU3CertsPath() {
return i2p::context.GetDataPath() / "resources" / "certificates" / "su3";
return i2p::context.GetDataPath() / "certificates" / "su3";
}

bfs::path GetSSLCertsPath() {
return i2p::context.GetDataPath() / "resources" / "certificates" / "ssl";
return i2p::context.GetDataPath() / "certificates" / "ssl";
}

std::string GetFullPath(const std::string& filename) {
Expand Down

0 comments on commit a4aa27a

Please sign in to comment.