Don't scream about local storage not being writable if a path hasn't been configured
Summary: D4497 Test Plan: Reloaded setup check, saw no issues. Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4537
This commit is contained in:
@@ -3,8 +3,10 @@
|
|||||||
final class PhabricatorSetupCheckStorage extends PhabricatorSetupCheck {
|
final class PhabricatorSetupCheckStorage extends PhabricatorSetupCheck {
|
||||||
|
|
||||||
protected function executeChecks() {
|
protected function executeChecks() {
|
||||||
$local_key = 'storage.local-disk.path';
|
$local_path = PhabricatorEnv::getEnvConfig('storage.local-disk.path');
|
||||||
$local_path = PhabricatorEnv::getEnvConfig($local_key);
|
if (!$local_path) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!Filesystem::pathExists($local_path) ||
|
if (!Filesystem::pathExists($local_path) ||
|
||||||
!is_readable($local_path) ||
|
!is_readable($local_path) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user