#!/bin/bash
export PATH=/4PROJECTS/bin:$PATH
if [ ! -n "$1" ]; then
  echo "Missing Parameters <UUID>"
  exit 0
fi

UUID=$1
echo "UUID: $UUID"

source /4server/sbin/helpers

get_contract_info


#export ODOO_DB_PASSWORD=$(echo "$SECRET" | jq -r '.psql')

echo "PASSWORD $ODOO_DB_PASSWORD"

echo "POSTGRES HOST: $POSTGRES_HOST"

doas docker exec -it "$UUID" odoo shell  --db_host beedb --db_password="$ODOO_DB_PASSWORD" -d "$UUID" --db_user="$UUID"
