Transaction Database Setup

Supported platform

It should be able to run on linux with postgresql installed.

Running database setup script

Example inputs for running setup script:

Example inputs
   ./transaction_db_setup.sh
       Enter New Postgres Username: <username>
       Enter New Password For New Postgres User: <password>
       Enter Database Name: <database name>

Input Requirements

  • Username : must be lower case. Underscores and dashes are allowed. 16 char max.
  • Password : may contain any character except for single quote: ‘ . 63 char max.
  • Database : must be lower case. Alphanumeric characters only. 63 char max.

Response

A successful run of the setup script should return a response ending like this:

Example response
       CREATE DATABASE
       CREATE ROLE
       GRANT
       Redirecting to /bin/systemctl restart postgresql-12.service