diff --git a/app/Http/Controllers/SelfUpdateController.php b/app/Http/Controllers/SelfUpdateController.php index c220c1f0400a..55a98d42a5c6 100644 --- a/app/Http/Controllers/SelfUpdateController.php +++ b/app/Http/Controllers/SelfUpdateController.php @@ -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);