fix default strorage location

This commit is contained in:
ghost 2023-10-25 03:55:58 +03:00
parent f068d20c03
commit 1004dfb05d
2 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,7 @@
},
"storage":
{
"directory":"yggtracker-wanted-torrents-receiver/storage",
"directory":"storage",
"common":true
}
},

View File

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