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) {