feat(updater): optional httpCheck + IA optimisations
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Florian Schmitt 2025-03-27 14:50:01 +03:00
parent 48ff8144fe
commit 1fcf0bf1da
2 changed files with 87 additions and 28 deletions

View file

@ -51,6 +51,12 @@ if ($isRoot) {
'description' => 'Depth to scan folders for wikis',
'defaultValue' => 1
],
'httpcheck' => [
'prefix' => 'http',
'longPrefix' => 'httpcheck',
'description' => 'Perform an http request to check if the yeswikis are working',
'noValue' => true
],
]);
try {
$climate->arguments->parse();
@ -68,7 +74,8 @@ if ($isRoot) {
$output = $climate->arguments->get('output');
$nobackup = $climate->arguments->get('nobackup');
$depth = $climate->arguments->get('depth');
$matches = searchWikis($path, 'wakka.config.php', $depth);
$httpCheck = $climate->arguments->get('httpcheck');
$matches = searchWikis($path, 'wakka.config.php', $depth, $httpCheck);
if (count($matches) == 0) {
$climate->info('No yeswiki found on path ' . $path . ' with depth ' . $depth);
exit;