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:
parent
0f07c07b3b
commit
bf025c5fb4
1 changed files with 4 additions and 4 deletions
|
@ -30,16 +30,16 @@ abstract class PhabricatorAphlictManagementWorkflow
|
||||||
$full_path = Filesystem::resolvePath($config_file);
|
$full_path = Filesystem::resolvePath($config_file);
|
||||||
$show_path = $full_path;
|
$show_path = $full_path;
|
||||||
} else {
|
} else {
|
||||||
$root = dirname(dirname(phutil_get_library_root('phabricator')));
|
$root = dirname(phutil_get_library_root('phorge'));
|
||||||
|
|
||||||
$try = array(
|
$try = array(
|
||||||
'phabricator/conf/aphlict/aphlict.custom.json',
|
'conf/aphlict/aphlict.custom.json',
|
||||||
'phabricator/conf/aphlict/aphlict.default.json',
|
'conf/aphlict/aphlict.default.json',
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($try as $config) {
|
foreach ($try as $config) {
|
||||||
$full_path = $root.'/'.$config;
|
$full_path = $root.'/'.$config;
|
||||||
$show_path = $config;
|
$show_path = '<phorge>/'.$config;
|
||||||
if (Filesystem::pathExists($full_path)) {
|
if (Filesystem::pathExists($full_path)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue