#!/bin/sh # Runs at every stack start (db-sync service): keeps the sbc_app role's # password in sync with APP_DB_PASSWORD, even when the database volume was # initialized with a different value. Idempotent. set -eu ESCAPED=$(printf %s "$APP_DB_PASSWORD" | sed "s/'/''/g") psql -v ON_ERROR_STOP=1 <