fix db
This commit is contained in:
parent
815345dc4f
commit
fc0d7c0307
3 changed files with 4 additions and 4 deletions
|
@ -7,5 +7,5 @@ services:
|
|||
TZ: Europe/Berlin
|
||||
volumes:
|
||||
- ./download:/download
|
||||
- ./download.db:/download.db
|
||||
- ./data:/data
|
||||
- ./config.toml:/config.toml
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue