test: switch from using HOME to DATABASE_HOME

This commit is contained in:
silver 2024-09-17 23:20:31 +01:00
parent d9211dca9a
commit 43c5cd2eff
Signed by untrusted user: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@
cfg = config.services."${package_name}";
# secret options are in the env file(s) loaded separately
environment_config = {
HOME = cfg.home;
DATABASE_HOME = cfg.home;
DATABASE = "database.db";
};

View file

@ -65,7 +65,7 @@ pub fn get_config() -> Config {
wolves_url: "".to_string(),
};
if let Ok(x) = env::var("HOME") {
if let Ok(x) = env::var("DATABASE_HOME") {
config.home = x.trim().to_string();
}
if let Ok(x) = env::var("DATABASE") {