mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Better handling of failed downloads for .zip
This commit is contained in:
parent
ce69755d70
commit
ba771c5cec
@ -120,7 +120,11 @@ class SelfUpdateController extends BaseController
|
||||
|
||||
nlog("copying release file");
|
||||
|
||||
copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip'));
|
||||
if(copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip'))){
|
||||
nlog("Copied file from URL");
|
||||
}
|
||||
else
|
||||
return response()->json(['message' => 'Download not yet available. Please try again shortly.'], 410);
|
||||
|
||||
nlog("Finished copying");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user