Page MenuHomeDevCentral

D1917.id4841.diff
No OneTemporary

D1917.id4841.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
@@ -4,7 +4,12 @@
# MYSQL
bin/config set mysql.host mysql
-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
Mon, Nov 25, 08:46 (19 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262273
Default Alt Text
D1917.id4841.diff (604 B)

Event Timeline