Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119986914
PhabricatorSetupCheckPath.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jul 1, 02:18
Size
1023 B
Mime Type
text/x-php
Expires
Thu, Jul 3, 02:18 (2 d)
Engine
blob
Format
Raw Data
Handle
27110224
Attached To
rPH Phabricator
PhabricatorSetupCheckPath.php
View Options
<?php
final
class
PhabricatorSetupCheckPath
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
// NOTE: We've already appended `environment.append-paths`, so we don't
// need to explicitly check for it.
$path
=
getenv
(
'PATH'
);
if
(!
$path
)
{
$summary
=
pht
(
'The environmental variable $PATH is empty. Phabricator will not '
.
'be able to execute some commands.'
);
$message
=
pht
(
'The environmental variable $PATH is empty. Phabricator needs to '
.
'execute some system commands, like `svn`, `git`, `hg`, and `diff`. '
.
'To execute these commands, the binaries must be available in the '
.
'webserver
\'
s $PATH. You can set additional paths in Phabricator '
.
'configuration.'
);
$this
->
newIssue
(
'config.environment.append-paths'
)
->
setName
(
pht
(
'$PATH Not Set'
))
->
setSummary
(
$summary
)
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'environment.append-paths'
);
}
}
}
Event Timeline
Log In to Comment