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

Make /etc configurable #488

Merged
merged 6 commits into from
Apr 3, 2024
Merged

Make /etc configurable #488

merged 6 commits into from
Apr 3, 2024

Conversation

robsavoye
Copy link
Collaborator

Make the etc directory configurable so it installs without being root. This is also required to build Debian packages.

@@ -102,7 +102,8 @@ 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;
rep_file += "replicator/planetreplicator.yaml";
Copy link
Collaborator

@emi420 emi420 Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a "/" is missing here

rep_file += "/replicator/planetreplicator.yaml";

@emi420
Copy link
Collaborator

emi420 commented Apr 2, 2024

Config for validation files are duplicated:

/usr/local/lib/underpass/config/validate

/usr/local/etc/underpass/validate

@robsavoye
Copy link
Collaborator Author

All fixed now.

@emi420 emi420 merged commit 3dcca77 into hotosm:master Apr 3, 2024
3 checks passed
@robsavoye robsavoye deleted the fix-etc branch April 5, 2024 04:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants