mirror of
https://github.com/YGGverse/yggtracker-wanted-torrents-receiver.git
synced 2025-02-10 13:14:14 +00:00
fix default strorage location
This commit is contained in:
parent
f068d20c03
commit
1004dfb05d
@ -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…
x
Reference in New Issue
Block a user