chmod exiftool in Exif.php
parent
1545636c65
commit
d8fea76992
|
@ -400,6 +400,7 @@ class Exif
|
||||||
|
|
||||||
// We know already where it is
|
// We know already where it is
|
||||||
if (!empty($configPath) && file_exists($configPath)) {
|
if (!empty($configPath) && file_exists($configPath)) {
|
||||||
|
chmod($configPath, 0755);
|
||||||
return $configPath;
|
return $configPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -428,6 +429,9 @@ class Exif
|
||||||
|
|
||||||
// check if file exists
|
// check if file exists
|
||||||
if (file_exists($path)) {
|
if (file_exists($path)) {
|
||||||
|
// make executable before version check
|
||||||
|
chmod($path, 0755);
|
||||||
|
|
||||||
// check if the version prints correctly
|
// check if the version prints correctly
|
||||||
$ver = self::EXIFTOOL_VER;
|
$ver = self::EXIFTOOL_VER;
|
||||||
$vero = shell_exec("{$path} -ver");
|
$vero = shell_exec("{$path} -ver");
|
||||||
|
@ -448,6 +452,7 @@ class Exif
|
||||||
// Fallback to perl script
|
// Fallback to perl script
|
||||||
$path = __DIR__.'/../exiftool-bin/exiftool/exiftool';
|
$path = __DIR__.'/../exiftool-bin/exiftool/exiftool';
|
||||||
if (file_exists($path)) {
|
if (file_exists($path)) {
|
||||||
|
chmod($path, 0755);
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue