Page MenuHomeDevCentral

No OneTemporary

diff --git a/files/usr/local/bin/setup-phabricator b/files/usr/local/bin/setup-phabricator
index 653ab4d..d9dcd9f 100755
--- a/files/usr/local/bin/setup-phabricator
+++ b/files/usr/local/bin/setup-phabricator
@@ -1,52 +1,58 @@
#!/usr/bin/env bash
pushd /opt/phabricator
# MYSQL
bin/config set mysql.host mysql
+# mysql.host variable is fixed and should always be set as 'mysql',
+# according to https://devcentral.nasqueron.org/diffusion/DPHAB/ :
+# > a MySQL container linked as 'mysql' (--link <your MySQL container>:mysql),
+# > 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 "$PHABRICATOR_STORAGE_NAMESPACE" ]; then
bin/config set storage.default-namespace "$PHABRICATOR_STORAGE_NAMESPACE"
fi
# URLs
bin/config set phabricator.base-uri "$PHABRICATOR_URL"
if [ -n "$PHABRICATOR_ALT_FILE_DOMAIN" ]; then
bin/config set security.alternate-file-domain "$PHABRICATOR_ALT_FILE_DOMAIN"
fi
# Mail
if [ -n "$PHABRICATOR_USE_MAILGUN" ]; then
bin/config set metamta.mail-adapter PhabricatorMailImplementationMailgunAdapter
if [ -n "$PHABRICATOR_DOMAIN" ]; then
bin/config set mailgun.domain "$PHABRICATOR_DOMAIN"
fi
if [ -n "$PHABRICATOR_MAILGUN_APIKEY" ]; then
bin/config set mailgun.api-key "$PHABRICATOR_MAILGUN_APIKEY"
fi
fi
if [ -n "$PHABRICATOR_USE_SENDGRID" ]; then
bin/config set metamta.mail-adapter PhabricatorMailImplementationSendGridAdapter
if [ -n "$PHABRICATOR_SENDGRID_APIUSER" ]; then
bin/config set sendgrid.api-user "$PHABRICATOR_SENDGRID_APIUSER"
fi
if [ -n "$PHABRICATOR_SENDGRID_APIKEY" ]; then
bin/config set sendgrid.api-key "$PHABRICATOR_SENDGRID_APIKEY"
fi
fi
# Installation
if [ -z "$PHABRICATOR_NO_INSTALL" ]; then
bin/storage upgrade --force
bin/config set storage.mysql-engine.max-size $((8*1042*1024))
bin/config set pygments.enabled true
fi
# Rights
chown -R app /var/repo
# We're done
popd
#restart phabricator daemon
sv restart phd
touch .initialized

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 18, 08:17 (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2990224
Default Alt Text
(2 KB)

Event Timeline