Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
fix: Use macro to define /etc/underpass directory
Browse files Browse the repository at this point in the history
  • Loading branch information
robsavoye committed Mar 28, 2024
1 parent 614c79b commit 8dbdde5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/replicator/planetreplicator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ PlanetReplicator::PlanetReplicator(void) {};
std::shared_ptr<RemoteURL> PlanetReplicator::findRemotePath(const underpassconfig::UnderpassConfig &config, ptime time) {
yaml::Yaml yaml;

std::string rep_file = "/etc/underpass/replicator/planetreplicator.yaml";
std::string rep_file = "ETCDIR/replicator/planetreplicator.yaml";
yaml.read(rep_file);
std::map<int, ptime> hashes;

Expand Down
2 changes: 1 addition & 1 deletion src/stats/statsconfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace statsconfig {

StatsConfig::StatsConfig() {
if (path.empty()) {
path = "/etc/underpass/stats/statistics.yaml";
path = "ETCDIR/stats/statistics.yaml";
if (!boost::filesystem::exists(path)) {
throw std::runtime_error("Statistics file not found: " + path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/testsuite/libunderpass.all/geo-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ main(int argc, char* argv[])
return 1;
}

if (tgu.readFile("/etc/underpass/priority.geojson")) {
if (tgu.readFile("ETCDIR/priority.geojson")) {
runtest.pass("Read file with absolute path");
} else {
runtest.fail("Read file with absolute path");
Expand Down
2 changes: 1 addition & 1 deletion src/underpass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ main(int argc, char *argv[])
{

std::string datadir = "replication/";
std::string boundary = "/etc/underpass/priority.geojson";
std::string boundary = "ETCDIR/priority.geojson";

UnderpassConfig config;

Expand Down

0 comments on commit 8dbdde5

Please sign in to comment.