Skip to content
Snippets Groups Projects
Commit 315bb006 authored by Stephen D's avatar Stephen D
Browse files

make filenames more consistent

parent 1450af3d
No related branches found
No related tags found
1 merge request!3deb packaging
Pipeline #4489 passed
......@@ -10,8 +10,8 @@ description = "An RX-only SDR CATS I-gate"
assets = [
["target/release/cats-sdr-igate-decoder", "/usr/bin/", "755"],
["debian/cats-sdr-igate.service", "/lib/systemd/system/cats-sdr-igate.service", "644"],
["config.example.toml", "/etc/cats_sdr_igate/config.toml", "644"],
["debian/start.sh", "/usr/bin/cats_sdr_igate", "755"]
["config.example.toml", "/etc/cats-sdr-igate/config.toml", "644"],
["debian/start.sh", "/usr/bin/cats-sdr-igate", "755"]
]
conf-files = ["/etc/cats_sdr_igate/config.toml"]
maintainer-scripts = "debian/maintainer_scripts/"
......
......@@ -52,12 +52,12 @@ impl Config {
}
fn read_conf_file() -> anyhow::Result<String> {
let filenames = ["config.toml", "/etc/cats_sdr_igate/config.toml"];
let filenames = ["config.toml", "/etc/cats-sdr-igate/config.toml"];
for filename in filenames.iter() {
if let Ok(x) = fs::read_to_string(filename) {
return Ok(x);
}
}
bail!("Could not open config file. Should either be `config.toml` in the current directory, or in /etc/cats_sdr_igate/")
bail!("Could not open config file. Should either be `config.toml` in the current directory, or in /etc/cats-sdr-igate/")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment