Improve memory handling for self update

This commit is contained in:
David Bomba 2022-03-29 09:14:13 +11:00
parent 2f744c6969
commit c61fc7f491

View File

@ -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');