Browse Source

fix default strorage location

main
ghost 1 year ago
parent
commit
1004dfb05d
  1. 2
      config/local.json
  2. 6
      src/cli.php

2
config/local.json

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

6
src/cli.php

@ -20,6 +20,12 @@ $local = json_decode(
file_get_contents(__DIR__ . '/../config/local.json') 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 // Init remote config
if ($local->update->config->remote->enabled) if ($local->update->config->remote->enabled)
{ {

Loading…
Cancel
Save