Skip to content

Commit 757400f

Browse files
stonebuzzRom1-B
andauthored
Fix(Core): Prevent error whit mising tools folder with official release (#32)
* Fix(Core): Prevent error whit mising tools folder with official release * Apply suggestion from @Rom1-B * Apply suggestions from code review Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> --------- Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 7b21102 commit 757400f

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Jamf Plugin for GLPI Changelog
22

3+
## [UNRELEASED]
4+
5+
### Fixed
6+
7+
- Fix failed to open stream: No such file or directory (`jamf/tools/pmv.json`)
8+
39
## [3.2.0] - 2026-04-23
410

511
### Added

inc/migration.class.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,7 @@ public function apply_3_0_0_migration(): void
618618
// Copy default pmv from tools dir
619619
$pmv_file_path = GLPI_PLUGIN_DOC_DIR . '/jamf/pmv.json';
620620
if (!file_exists($pmv_file_path)) {
621-
Toolbox::logDebug($pmv_file_path);
622-
Toolbox::logDebug(Plugin::getPhpDir('jamf') . '/tools/pmv.json');
623-
copy(Plugin::getPhpDir('jamf') . '/tools/pmv.json', $pmv_file_path);
621+
copy(Plugin::getPhpDir('jamf') . '/resources/pmv.json', $pmv_file_path);
624622
}
625623

626624
// Register Cron task to update PMV periodically
File renamed without changes.

0 commit comments

Comments
 (0)