From 1004dfb05d0be6b8d5438077a3514c25e1fb2073 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 25 Oct 2023 03:55:58 +0300 Subject: [PATCH] fix default strorage location --- config/local.json | 2 +- src/cli.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/local.json b/config/local.json index ed0df24..2e6c550 100644 --- a/config/local.json +++ b/config/local.json @@ -15,7 +15,7 @@ }, "storage": { - "directory":"yggtracker-wanted-torrents-receiver/storage", + "directory":"storage", "common":true } }, diff --git a/src/cli.php b/src/cli.php index 6a4f1d1..a60f6f6 100644 --- a/src/cli.php +++ b/src/cli.php @@ -20,6 +20,12 @@ $local = json_decode( file_get_contents(__DIR__ . '/../config/local.json') ); +// Default storage location +if ($local->import->storage->directory == 'storage') +{ + $local->import->storage->directory = __DIR__ . '/../storage'; +} + // Init remote config if ($local->update->config->remote->enabled) {