diff --git a/CHANGELOG.md b/CHANGELOG.md index ffecb02..f2c5638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Jamf Plugin for GLPI Changelog +## [UNRELEASED] + +### Fixed + +- Fix failed to open stream: No such file or directory (`jamf/tools/pmv.json`) + ## [3.2.0] - 2026-04-23 ### Added diff --git a/inc/migration.class.php b/inc/migration.class.php index c3228c0..371b9bd 100644 --- a/inc/migration.class.php +++ b/inc/migration.class.php @@ -618,9 +618,7 @@ public function apply_3_0_0_migration(): void // Copy default pmv from tools dir $pmv_file_path = GLPI_PLUGIN_DOC_DIR . '/jamf/pmv.json'; if (!file_exists($pmv_file_path)) { - Toolbox::logDebug($pmv_file_path); - Toolbox::logDebug(Plugin::getPhpDir('jamf') . '/tools/pmv.json'); - copy(Plugin::getPhpDir('jamf') . '/tools/pmv.json', $pmv_file_path); + copy(Plugin::getPhpDir('jamf') . '/resources/pmv.json', $pmv_file_path); } // Register Cron task to update PMV periodically diff --git a/tools/pmv.json b/resources/pmv.json similarity index 100% rename from tools/pmv.json rename to resources/pmv.json