From 23b466ade2672f51abe7f92a45dc907a9120d033 Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 21 Oct 2023 01:12:52 +1000 Subject: [PATCH] change default config path to a file --- filed/src/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filed/src/env.rs b/filed/src/env.rs index 427f7de..112c71c 100644 --- a/filed/src/env.rs +++ b/filed/src/env.rs @@ -58,7 +58,7 @@ pub fn loadenv() -> Result> { instanceurl: get_var("INSTANCE_URL")?, uploadspath: get_var("UPLOADS_PATH")?, confpath: { - let spath: String = get_var("CONF_FILE").unwrap_or("/etc/filed".into()); + let spath: String = get_var("CONF_FILE").unwrap_or("/etc/filed/filed.toml".into()); let path = Path::new(&spath); if ! path.is_file() { return Err(format!("CONF_FILE is {}, which is not a file!", spath).into())