diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -46,7 +46,7 @@
'rsrc/css/application/conduit/conduit-api.css' => 'ce2cfc41',
'rsrc/css/application/config/config-options.css' => '16c920ae',
'rsrc/css/application/config/config-template.css' => 'e689dbbd',
- 'rsrc/css/application/config/setup-issue.css' => '5eed85b2',
+ 'rsrc/css/application/config/setup-issue.css' => '93231115',
'rsrc/css/application/config/unhandled-exception.css' => '9ecfc00d',
'rsrc/css/application/conpherence/color.css' => 'b17746b0',
'rsrc/css/application/conpherence/durable-column.css' => '2d57072b',
@@ -905,7 +905,7 @@
'project-card-view-css' => 'c1200da7',
'project-triggers-css' => 'cd9c8bb9',
'project-view-css' => '2f7caa20',
- 'setup-issue-css' => '5eed85b2',
+ 'setup-issue-css' => '93231115',
'sprite-login-css' => '07052ee0',
'sprite-tokens-css' => 'f1896dc5',
'syntax-default-css' => '055fc231',
diff --git a/src/applications/config/check/PhabricatorAuthSetupCheck.php b/src/applications/config/check/PhabricatorAuthSetupCheck.php
--- a/src/applications/config/check/PhabricatorAuthSetupCheck.php
+++ b/src/applications/config/check/PhabricatorAuthSetupCheck.php
@@ -74,7 +74,8 @@
->addRelatedPhabricatorConfig('auth.lock-config')
->addCommand(
hsprintf(
- '$ ./bin/auth lock'));
+ '%s $./bin/auth lock',
+ PlatformSymbols::getPlatformServerPath()));
}
}
}
diff --git a/src/applications/config/check/PhabricatorBaseURISetupCheck.php b/src/applications/config/check/PhabricatorBaseURISetupCheck.php
--- a/src/applications/config/check/PhabricatorBaseURISetupCheck.php
+++ b/src/applications/config/check/PhabricatorBaseURISetupCheck.php
@@ -96,7 +96,8 @@
->setMessage($message)
->addCommand(
hsprintf(
- '$ %s',
+ '%s $%s',
+ PlatformSymbols::getPlatformServerPath(),
csprintf(
'./bin/config set phabricator.base-uri %s',
$base_uri_guess)));
diff --git a/src/applications/config/check/PhabricatorDaemonsSetupCheck.php b/src/applications/config/check/PhabricatorDaemonsSetupCheck.php
--- a/src/applications/config/check/PhabricatorDaemonsSetupCheck.php
+++ b/src/applications/config/check/PhabricatorDaemonsSetupCheck.php
@@ -49,7 +49,10 @@
->setName(pht('Daemons Are Not Running'))
->setSummary($summary)
->setMessage($message)
- ->addCommand('$ ./bin/phd start');
+ ->addCommand(
+ hsprintf(
+ '%s $./bin/phd start',
+ PlatformSymbols::getPlatformServerPath()));
}
$expect_user = PhabricatorEnv::getEnvConfig('phd.user');
@@ -90,7 +93,10 @@
->setSummary($summary)
->setMessage($message)
->addPhabricatorConfig('phd.user')
- ->addCommand('$ ./bin/phd restart');
+ ->addCommand(
+ hsprintf(
+ '%s $./bin/phd restart',
+ PlatformSymbols::getPlatformServerPath()));
break;
}
diff --git a/src/applications/config/check/PhabricatorDatabaseSetupCheck.php b/src/applications/config/check/PhabricatorDatabaseSetupCheck.php
--- a/src/applications/config/check/PhabricatorDatabaseSetupCheck.php
+++ b/src/applications/config/check/PhabricatorDatabaseSetupCheck.php
@@ -35,11 +35,13 @@
->addPhabricatorConfig('mysql.port')
->addCommand(
hsprintf(
- '$ ./bin/config set mysql.host %s',
+ '%s $./bin/config set mysql.host %s',
+ PlatformSymbols::getPlatformServerPath(),
$host))
->addCommand(
hsprintf(
- '$ ./bin/config set mysql.port %s',
+ '%s $./bin/config set mysql.port %s',
+ PlatformSymbols::getPlatformServerPath(),
$port));
}
@@ -134,7 +136,10 @@
->setName(pht('Setup MySQL Schema'))
->setMessage($message)
->setIsFatal(true)
- ->addCommand(hsprintf('$ ./bin/storage upgrade'));
+ ->addCommand(
+ hsprintf(
+ '%s $./bin/storage upgrade',
+ PlatformSymbols::getPlatformServerPath()));
return true;
}
@@ -160,7 +165,9 @@
->setIsFatal(true)
->setMessage($message)
->addCommand(
- hsprintf('$ ./bin/storage upgrade'));
+ hsprintf(
+ '%s $./bin/storage upgrade',
+ PlatformSymbols::getPlatformServerPath()));
return true;
}
diff --git a/src/applications/config/check/PhabricatorElasticsearchSetupCheck.php b/src/applications/config/check/PhabricatorElasticsearchSetupCheck.php
--- a/src/applications/config/check/PhabricatorElasticsearchSetupCheck.php
+++ b/src/applications/config/check/PhabricatorElasticsearchSetupCheck.php
@@ -60,7 +60,10 @@
$this
->newIssue('elastic.missing-index')
->setName(pht('Elasticsearch Index Not Found'))
- ->addCommand('./bin/search init')
+ ->addCommand(
+ hsprintf(
+ '%s $./bin/search init',
+ PlatformSymbols::getPlatformServerPath()))
->setSummary($summary)
->setMessage($message);
@@ -76,7 +79,10 @@
$this
->newIssue('elastic.broken-index')
->setName(pht('Elasticsearch Index Schema Mismatch'))
- ->addCommand('./bin/search init')
+ ->addCommand(
+ hsprintf(
+ '%s $./bin/search init',
+ PlatformSymbols::getPlatformServerPath()))
->setSummary($summary)
->setMessage($message);
}
diff --git a/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php b/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
--- a/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
+++ b/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
@@ -76,7 +76,10 @@
$issue->setMessage($message);
if ($found_local) {
- $command = csprintf('$ ./bin/config delete %s', $key);
+ $command = csprintf(
+ '%s $./bin/config delete %s',
+ PlatformSymbols::getPlatformServerPath(),
+ $key);
$issue->addCommand($command);
}
diff --git a/src/applications/config/view/PhabricatorSetupIssueView.php b/src/applications/config/view/PhabricatorSetupIssueView.php
--- a/src/applications/config/view/PhabricatorSetupIssueView.php
+++ b/src/applications/config/view/PhabricatorSetupIssueView.php
@@ -286,7 +286,8 @@
$update = array();
foreach ($configs as $key) {
$update[] = hsprintf(
- '$ ./bin/config set %s value',
+ '%s $./bin/config set %s value',
+ PlatformSymbols::getPlatformServerPath(),
$key);
}
$update = phutil_tag('pre', array(), phutil_implode_html("\n", $update));
diff --git a/src/applications/uiexample/examples/PhabricatorSetupIssueUIExample.php b/src/applications/uiexample/examples/PhabricatorSetupIssueUIExample.php
--- a/src/applications/uiexample/examples/PhabricatorSetupIssueUIExample.php
+++ b/src/applications/uiexample/examples/PhabricatorSetupIssueUIExample.php
@@ -25,7 +25,9 @@
->setMessage(pht('Message'))
->setIssueKey('example.key')
->addCommand('$ # Add Command')
- ->addCommand(hsprintf('$ %s', '$ ls -1 > /dev/null'))
+ ->addCommand(hsprintf(
+ '%s $%s', 'ls -1 > /dev/null',
+ PlatformSymbols::getPlatformServerPath()))
->addPHPConfig('php.config.example')
->addPhabricatorConfig('test.value')
->addPHPExtension('libexample');
diff --git a/webroot/rsrc/css/application/config/setup-issue.css b/webroot/rsrc/css/application/config/setup-issue.css
--- a/webroot/rsrc/css/application/config/setup-issue.css
+++ b/webroot/rsrc/css/application/config/setup-issue.css
@@ -122,6 +122,11 @@
padding: 12px 0;
}
+.setup-issue-config > pre > tt {
+ user-select: none;
+ margin-right: 0.5em;
+}
+
.setup-issue-config + .setup-issue-config {
padding-top: 0;
}