mirror of
https://github.com/YGGverse/yggtracker-wanted-torrents-receiver.git
synced 2026-03-31 18:05:27 +00:00
fix default strorage location
This commit is contained in:
parent
f068d20c03
commit
1004dfb05d
2 changed files with 7 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"storage":
|
||||
{
|
||||
"directory":"yggtracker-wanted-torrents-receiver/storage",
|
||||
"directory":"storage",
|
||||
"common":true
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue