Sha256: 7c66131d7a211fe4c3e380d3f76c78873ebe2bab3de3908515aa70d72932c0c2

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

#!/usr/bin/env bash

set -e

echo
echo "Printing Message Store Version"
echo "= = ="
echo

default_name=message_store

if [ -z ${DATABASE_USER+x} ]; then
  echo "(DATABASE_USER is not set)"
  user=$default_name
else
  user=$DATABASE_USER
fi
echo "Database user is: $user"

if [ -z ${DATABASE_NAME+x} ]; then
  echo "(DATABASE_NAME is not set)"
  database=$default_name
else
  database=$DATABASE_NAME
fi
echo "Database name is: $database"

default_table_name=messages

echo

psql $database -v ON_ERROR_STOP=1 -U $user -P pager=off -c "SELECT message_store_version();"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message-db-3.0.0 database/print-message-store-version.sh