#!/bin/bash ## XXXvlab: this hook should go into a generic odoo image ## XXXvlab: should get location of code CONFIG=$SERVICE_CONFIGSTORE/etc/odoo-server.conf . lib/common set -e PASSWORD="$(relation-get password)" USER="$(relation-get user)" DBNAME="$(relation-get dbname)" config-add "\ services: $MASTER_BASE_SERVICE_NAME: environment: CMD_DB_URL: postgres://$USER:$PASSWORD@$TARGET_SERVICE_NAME/$DBNAME " info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."