mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Improve memory handling for self update
This commit is contained in:
parent
2f744c6969
commit
c61fc7f491
@ -100,9 +100,10 @@ class SelfUpdateController extends BaseController
|
||||
|
||||
$this->testWritable();
|
||||
|
||||
$contents = file_get_contents($this->getDownloadUrl());
|
||||
copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip'));
|
||||
|
||||
Storage::disk('local')->put('invoiceninja.zip', $contents);
|
||||
// $contents = file_get_contents($this->getDownloadUrl());
|
||||
// Storage::disk('local')->put('invoiceninja.zip', $contents);
|
||||
|
||||
$file = Storage::disk('local')->path('invoiceninja.zip');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user