Skip to content

Commit af07d3e

Browse files
committed
entrypoint: Use DB_NAME / DB_USER for PostgreSQL database name / user.
1 parent 4926213 commit af07d3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,16 @@ puppetConfiguration() {
155155
crudini --set /etc/zulip/zulip.conf http_proxy allow_ranges "${PROXY_ALLOW_RANGES}"
156156
fi
157157

158+
if [ "$DB_NAME" != "zulip" ]; then
159+
echo "Setting database name to $DB_NAME"
160+
crudini --set /etc/zulip/zulip.conf postgresql database_name "$DB_NAME"
161+
fi
162+
163+
if [ "$DB_USER" != "zulip" ]; then
164+
echo "Setting database user to $DB_USER"
165+
crudini --set /etc/zulip/zulip.conf postgresql database_user "$DB_USER"
166+
fi
167+
158168
/home/zulip/deployments/current/scripts/zulip-puppet-apply -f
159169
}
160170
configureCerts() {

0 commit comments

Comments
 (0)