#!/bin/bash

gosu postgres psql > /dev/null <<- EOSQL
                CREATE USER MIMIC WITH PASSWORD '$MIMIC_PASSWORD';
                CREATE DATABASE MIMIC OWNER MIMIC;
EOSQL

#!/bin/bash

sudo -u postgres psql > /dev/null <<- EOSQL
                CREATE USER MIMIC WITH PASSWORD '$MIMIC_PASSWORD';
                CREATE DATABASE MIMIC OWNER MIMIC;
EOSQL

Remove dependency on "gosu" by using standard "sudo" with user option
Remove dependency on "gosu" by using standard "sudo" with user option
