This script is used for setting up the PostgreSQL datamart in CTF advanced mode installation.
You can run this script from the command line as follows:
sudo [RUNTIME_DIR]/scripts/datamart-pgsql-setup
The datamart-pgsql-setup.sh is an interactive script and does not take any parameters.
[SCRIPTS_DIR]/set-reports-readonly-user-permission.py script needs to be executed after bootstrap or migration to complete the datamart setup.