1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Aphlict - search for default config in the right place

Summary: Fix T15502.

Test Plan: Renamed `phorge` dir few times, run `./bin/aphlict status` to see message.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15502

Differential Revision: https://we.phorge.it/D25344
This commit is contained in:
Aviv Eyal 2023-07-24 00:41:16 -07:00
parent 0f07c07b3b
commit bf025c5fb4

View file

@ -30,16 +30,16 @@ abstract class PhabricatorAphlictManagementWorkflow
$full_path = Filesystem::resolvePath($config_file);
$show_path = $full_path;
} else {
$root = dirname(dirname(phutil_get_library_root('phabricator')));
$root = dirname(phutil_get_library_root('phorge'));
$try = array(
'phabricator/conf/aphlict/aphlict.custom.json',
'phabricator/conf/aphlict/aphlict.default.json',
'conf/aphlict/aphlict.custom.json',
'conf/aphlict/aphlict.default.json',
);
foreach ($try as $config) {
$full_path = $root.'/'.$config;
$show_path = $config;
$show_path = '<phorge>/'.$config;
if (Filesystem::pathExists($full_path)) {
break;
}