Use absolute NC migration helper path

This commit is contained in:
Terranom674
2026-08-17 10:30:55 +02:00
parent b8869e7da1
commit 719d37c866

View File

@@ -310,6 +310,11 @@ function bratonien_tools_nc_connector_status()
$connections = bratonien_tools_nc_connector_connections(); $connections = bratonien_tools_nc_connector_connections();
$bundle_path = bratonien_tools_nc_connector_import_bundle_path(); $bundle_path = bratonien_tools_nc_connector_import_bundle_path();
$helper_path = realpath(BRATONIEN_TOOLS_PATH.'nc-connector-migrate.php');
if ($helper_path === false)
{
$helper_path = BRATONIEN_TOOLS_PATH.'nc-connector-migrate.php';
}
return array( return array(
'phase' => 'Migration', 'phase' => 'Migration',
@@ -340,6 +345,6 @@ function bratonien_tools_nc_connector_status()
'connection_count' => count($connections), 'connection_count' => count($connections),
'migration_bundle_available' => is_readable($bundle_path), 'migration_bundle_available' => is_readable($bundle_path),
'migration_bundle_path' => $bundle_path, 'migration_bundle_path' => $bundle_path,
'migration_command' => 'sudo php '.PHPWG_ROOT_PATH.'plugins/'.BRATONIEN_TOOLS_ID.'/nc-connector-migrate.php', 'migration_command' => 'sudo php '.$helper_path,
); );
} }