Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 8031274

Browse files
committed
Moving install files to plugins/boot.conf requires checking if the parent folder properly exists or not.
1 parent 167a494 commit 8031274

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

core/src/core/src/pydio/Core/Utils/ApplicationState.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public static function detectApplicationFirstRun()
4646
*/
4747
public static function setApplicationFirstRunPassed()
4848
{
49+
if(!is_file(AJXP_DATA_PATH . "/plugins/boot.conf")){
50+
@mkdir(AJXP_DATA_PATH . "/plugins/boot.conf", 0666, true);
51+
}
4952
@file_put_contents(AJXP_DATA_PATH . "/plugins/boot.conf/first_run_passed", "true");
5053
}
5154

core/src/core/src/pydio/Core/Utils/Reflection/DiagnosticRunner.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ public static function testResultsToFile($outputArray, $testedParams)
173173
echo ';';
174174
$content = '<?php ' . ob_get_contents() . ' ?>';
175175
ob_end_clean();
176-
//print_r($content);
176+
if(!file_exists(dirname(TESTS_RESULT_FILE))){
177+
mkdir(dirname(TESTS_RESULT_FILE), 0666, true);
178+
}
177179
file_put_contents(TESTS_RESULT_FILE, $content);
178180
}
179181
}

0 commit comments

Comments
 (0)