Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3773865
D1917.id4841.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
604 B
Referenced Files
None
Subscribers
None
D1917.id4841.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1917: Allow to set MySQL credentials
Attached
Detach File
Event Timeline
Log In to Comment