Refactor for self updater

This commit is contained in:
David Bomba 2022-03-19 14:13:29 +11:00
parent 8e6772ef75
commit 112b04a3bb

View File

@ -15,7 +15,7 @@ use App\Exceptions\FilePermissionsFailure;
use App\Utils\Ninja;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Storage;
class SelfUpdateController extends BaseController
{
use DispatchesJobs;
@ -109,7 +109,7 @@ class SelfUpdateController extends BaseController
$zipFile->openFile($file);
$zipFile->extractTo('/home/david/Downloads/1/');
$zipFile->extractTo(base_path());
$zipFile->close();
@ -162,6 +162,6 @@ class SelfUpdateController extends BaseController
{
$version = $this->checkVersion();
return "https://github.com/invoiceninja/invoiceninja/releases/download/v{$version}/invoiceninja.zip"
return "https://github.com/invoiceninja/invoiceninja/releases/download/v{$version}/invoiceninja.zip";
}
}