mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Fixes for setting permissions on chrome binary
This commit is contained in:
parent
dc6638b9d2
commit
aecc3c27c4
@ -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