mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Remove exiftool gitmodule dependency
This commit is contained in:
@@ -45,10 +45,11 @@ class task_period_upgradetov31 extends task_abstract
|
||||
// task can't be stopped here
|
||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||
$conn = $appbox->get_connection();
|
||||
$registry = $appbox->get_registry();
|
||||
$running = true;
|
||||
|
||||
if ( ! is_executable($registry->get('GV_exiftool'))) {
|
||||
$binary = __DIR__ . '/../../../../vendor/phpexiftool/exiftool/exiftool';
|
||||
|
||||
if ( ! is_executable($binary)) {
|
||||
printf("Exiftool is not executable, script can not process\n");
|
||||
|
||||
return 'stopped';
|
||||
|
@@ -330,9 +330,15 @@ class task_period_writemeta extends task_databoxAbstract
|
||||
|
||||
foreach ($tsub as $name => $file) {
|
||||
$cmd = '';
|
||||
|
||||
if ($this->system == 'WINDOWS')
|
||||
{
|
||||
$cmd = 'start /B /LOW ';
|
||||
$cmd .= ( $registry->get('GV_exiftool') . ' -m -overwrite_original ');
|
||||
}
|
||||
|
||||
$cmd .= __DIR__ . '/../../../../vendor/phpexiftool/exiftool/exiftool'
|
||||
. ' -m -overwrite_original ';
|
||||
|
||||
if ($name != 'document' || $this->clear_doc)
|
||||
$cmd .= ' -all:all= ';
|
||||
|
||||
|
Reference in New Issue
Block a user