Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3773752
D1917.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
676 B
Referenced Files
None
Subscribers
None
D1917.id.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
@@ -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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 08:21 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260319
Default Alt Text
D1917.id.diff (676 B)
Attached To
Mode
D1917: Allow to set MySQL credentials
Attached
Detach File
Event Timeline
Log In to Comment