#!/bin/bash # POSTGRES SETUP sudo -u postgres createdb mnml sudo -u postgres createuser --encrypted mnml PG_PASSWORD=$(openssl rand -hex 16) echo "database password is $PG_PASSWORD" sudo -u -E postgres psql -c "alter user mnml with encrypted password '$PG_PASSWORD';"