mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-22 20:41:59 +00:00
entrypoint: Use DB_NAME / DB_USER for PostgreSQL database name / user.
This commit is contained in:
committed by
Alex Vandiver
parent
4926213cab
commit
af07d3ef3d
@@ -155,6 +155,16 @@ puppetConfiguration() {
|
||||
crudini --set /etc/zulip/zulip.conf http_proxy allow_ranges "${PROXY_ALLOW_RANGES}"
|
||||
fi
|
||||
|
||||
if [ "$DB_NAME" != "zulip" ]; then
|
||||
echo "Setting database name to $DB_NAME"
|
||||
crudini --set /etc/zulip/zulip.conf postgresql database_name "$DB_NAME"
|
||||
fi
|
||||
|
||||
if [ "$DB_USER" != "zulip" ]; then
|
||||
echo "Setting database user to $DB_USER"
|
||||
crudini --set /etc/zulip/zulip.conf postgresql database_user "$DB_USER"
|
||||
fi
|
||||
|
||||
/home/zulip/deployments/current/scripts/zulip-puppet-apply -f
|
||||
}
|
||||
configureCerts() {
|
||||
|
Reference in New Issue
Block a user