change config file location in /etc/

This commit is contained in:
Aravinth Manivannan 2021-10-13 18:43:08 +05:30
parent d640c7d5a2
commit fb7125d5ab
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -93,7 +93,7 @@ impl Settings {
.expect("Couldn't get the number of CPUs"); .expect("Couldn't get the number of CPUs");
const CURRENT_DIR: &str = "./config/default.toml"; const CURRENT_DIR: &str = "./config/default.toml";
const ETC: &str = "/etc/athena/config.toml"; const ETC: &str = "/etc/mcaptcha-survey/config.toml";
if let Ok(path) = env::var("ATHENA_CONFIG") { if let Ok(path) = env::var("ATHENA_CONFIG") {
s.merge(File::with_name(&path))?; s.merge(File::with_name(&path))?;