This commit is contained in:
JMARyA 2024-03-14 12:41:57 +01:00
parent 815345dc4f
commit fc0d7c0307
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 4 additions and 4 deletions

View file

@ -7,5 +7,5 @@ services:
TZ: Europe/Berlin
volumes:
- ./download:/download
- ./download.db:/download.db
- ./data:/data
- ./config.toml:/config.toml

View file

@ -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

View file

@ -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);