change config file location in /etc/
This commit is contained in:
parent
d640c7d5a2
commit
fb7125d5ab
1 changed files with 1 additions and 1 deletions
|
@ -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))?;
|
||||||
|
|
Loading…
Reference in a new issue