mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #7493 from turbo124/v5-develop
Fixes for setting permissions on chrome binary
This commit is contained in:
commit
f98bdc19ae
@ -16,6 +16,7 @@ use App\Models\Client;
|
||||
use App\Utils\Ninja;
|
||||
use App\Utils\Traits\AppSetup;
|
||||
use App\Utils\Traits\ClientGroupSettingsSaver;
|
||||
use Beganovich\Snappdf\Snappdf;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
@ -134,6 +135,15 @@ class SelfUpdateController extends BaseController
|
||||
|
||||
nlog("Extracting zip");
|
||||
|
||||
try{
|
||||
$s = new Snappdf;
|
||||
$s->getChromiumPath();
|
||||
chmod($this->generatePlatformExecutable($s->getChromiumPath()), 0755);
|
||||
}
|
||||
catch(\Exception $e){
|
||||
nlog("I could not set the file permissions for chrome");
|
||||
}
|
||||
|
||||
// $zipFile = new \PhpZip\ZipFile();
|
||||
|
||||
// $zipFile->openFile($file);
|
||||
|
Loading…
Reference in New Issue
Block a user