change default config path to a file

This commit is contained in:
blek 2023-10-21 01:12:52 +10:00
parent 26f40621c9
commit 23b466ade2
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ pub fn loadenv() -> Result<Env, Box<dyn std::error::Error>> {
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())