Browse Source

fix: [mattermost] postgres password is saved in config, so we need also to change it.

framadate
Valentin Lab 6 years ago
parent
commit
3c1fd91a2e
  1. 3
      mattermost/hooks/postgres_database-relation-joined

3
mattermost/hooks/postgres_database-relation-joined

@ -18,6 +18,9 @@ services:
MM_USERNAME: $USER MM_USERNAME: $USER
" "
sed -ri 's/(^\s+"DataSource": "postgres:[^:]+:)([^@]+)@/\1'"$PASSWORD"'@/' \
"$SERVICE_CONFIGSTORE/mattermost/config/config.json" || exit 1
[ "$control" == "$(relation-get control 2>/dev/null)" ] && exit 0 [ "$control" == "$(relation-get control 2>/dev/null)" ] && exit 0

Loading…
Cancel
Save