mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 21:14:35 -04:00
Revert zip package
This commit is contained in:
parent
e3377d9424
commit
3e8ad10efe
@ -135,30 +135,30 @@ class SelfUpdateController extends BaseController
|
|||||||
|
|
||||||
nlog("Extracting zip");
|
nlog("Extracting zip");
|
||||||
|
|
||||||
try{
|
// try{
|
||||||
$s = new Snappdf;
|
// $s = new Snappdf;
|
||||||
$s->getChromiumPath();
|
// $s->getChromiumPath();
|
||||||
chmod($this->generatePlatformExecutable($s->getChromiumPath()), 0755);
|
// chmod($this->generatePlatformExecutable($s->getChromiumPath()), 0755);
|
||||||
}
|
// }
|
||||||
catch(\Exception $e){
|
// catch(\Exception $e){
|
||||||
nlog("I could not set the file permissions for chrome");
|
// nlog("I could not set the file permissions for chrome");
|
||||||
}
|
// }
|
||||||
|
|
||||||
// $zipFile = new \PhpZip\ZipFile();
|
$zipFile = new \PhpZip\ZipFile();
|
||||||
|
|
||||||
// $zipFile->openFile($file);
|
$zipFile->openFile($file);
|
||||||
|
|
||||||
// $zipFile->extractTo(base_path());
|
$zipFile->extractTo(base_path());
|
||||||
|
|
||||||
// $zipFile->close();
|
$zipFile->close();
|
||||||
|
|
||||||
$zip = new \ZipArchive;
|
// $zip = new \ZipArchive;
|
||||||
|
|
||||||
$res = $zip->open($file);
|
// $res = $zip->open($file);
|
||||||
if ($res === TRUE) {
|
// if ($res === TRUE) {
|
||||||
$zip->extractTo(base_path());
|
// $zip->extractTo(base_path());
|
||||||
$zip->close();
|
// $zip->close();
|
||||||
}
|
// }
|
||||||
|
|
||||||
nlog("Finished extracting files");
|
nlog("Finished extracting files");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user