mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 07:04:34 -04:00
update self updater
This commit is contained in:
parent
d9f179b84d
commit
02646640aa
@ -15,6 +15,7 @@ use App\Utils\Ninja;
|
|||||||
use Composer\Factory;
|
use Composer\Factory;
|
||||||
use Composer\IO\NullIO;
|
use Composer\IO\NullIO;
|
||||||
use Composer\Installer;
|
use Composer\Installer;
|
||||||
|
use Cz\Git\GitException;
|
||||||
use Cz\Git\GitRepository;
|
use Cz\Git\GitRepository;
|
||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
@ -73,8 +74,12 @@ class SelfUpdateController extends BaseController
|
|||||||
|
|
||||||
info("Are there changes to pull? " . $repo->hasChanges());
|
info("Are there changes to pull? " . $repo->hasChanges());
|
||||||
|
|
||||||
|
try{
|
||||||
$res = $repo->pull();
|
$res = $repo->pull();
|
||||||
|
}
|
||||||
|
catch(GitException $e) {
|
||||||
|
info($e->getMessage());
|
||||||
|
}
|
||||||
info("Are there any changes to pull? " . $repo->hasChanges());
|
info("Are there any changes to pull? " . $repo->hasChanges());
|
||||||
|
|
||||||
Artisan::call('ninja:post-update');
|
Artisan::call('ninja:post-update');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user