diff --git a/docker-compose.yml b/docker-compose.yml index 5e78497..7563e30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,5 +7,5 @@ services: TZ: Europe/Berlin volumes: - ./download:/download - - ./download.db:/download.db + - ./data:/data - ./config.toml:/config.toml diff --git a/entrypoint.sh b/entrypoint.sh index 76450c1..3e4d65c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,8 +3,8 @@ echo "Creating User ${UID:-1000}" useradd -m -u "${UID:-1000}" hoard || exit 1 -chown -R hoard /downloads +chown -R hoard /download mkdir /.cache && chown -R hoard /.cache -chown -R hoard /download.db +chown -R hoard /data su hoard -c /hoard diff --git a/src/main.rs b/src/main.rs index 2e77477..5b08b11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ fn main() { log::info!("Starting hoard"); - let db = db::DatabaseBackend::new("download.db"); + let db = db::DatabaseBackend::new("data/download.db"); let config: GlobalConfig = toml::from_str(&std::fs::read_to_string("config.toml").unwrap()).unwrap(); ensure_dir_exists(&config.hoard.data_dir);