Page MenuHomeDevCentral

D1917.id.diff
No OneTemporary

D1917.id.diff

diff --git a/files/usr/local/bin/setup-phabricator b/files/usr/local/bin/setup-phabricator
--- a/files/usr/local/bin/setup-phabricator
+++ b/files/usr/local/bin/setup-phabricator
@@ -10,7 +10,12 @@
# > which could be the official MySQL image or our nasqueron/mysql image,
# > optimized for Phabricator.
-bin/config set mysql.pass "$MYSQL_ENV_MYSQL_ROOT_PASSWORD"
+if [ -n "$DB_USER" ]; then
+ bin/config set mysql.user "$DB_USER"
+ bin/config set mysql.pass "$DB_PASS"
+else
+ bin/config set mysql.pass "$MYSQL_ENV_MYSQL_ROOT_PASSWORD"
+fi
if [ -n "$PHABRICATOR_STORAGE_NAMESPACE" ]; then
bin/config set storage.default-namespace "$PHABRICATOR_STORAGE_NAMESPACE"
fi

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 14:08 (7 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260319
Default Alt Text
D1917.id.diff (676 B)

Event Timeline