15:03:32[2025-11-14T15:03:32.505Z] + export PG_DB=****
15:03:32[2025-11-14T15:03:32.505Z] + export PG_USER=****
15:03:32[2025-11-14T15:03:32.505Z] + export POSTGRES_HOST=****
15:03:32[2025-11-14T15:03:32.505Z] + export PGPASSWORD=****
15:03:32[2025-11-14T15:03:32.506Z] + echo đ Checking if PostgreSQL server is running...
15:03:32[2025-11-14T15:03:32.506Z] đ Checking if PostgreSQL server is running...
15:03:32[2025-11-14T15:03:32.506Z] + docker exec **** pg_isready
15:03:32[2025-11-14T15:03:32.506Z] + echo â PostgreSQL server is running
15:03:32[2025-11-14T15:03:32.506Z] â PostgreSQL server is running
15:03:32[2025-11-14T15:03:32.507Z] + echo âšī¸ Checking if database and user already exist...
15:03:32[2025-11-14T15:03:32.507Z] âšī¸ Checking if database and user already exist...
15:03:32[2025-11-14T15:03:32.507Z] + docker exec -u postgres **** psql -tAc SELECT 1 FROM pg_database WHERE datname=****
15:03:32[2025-11-14T15:03:32.758Z] + echo 0
15:03:32[2025-11-14T15:03:32.758Z] + DB_EXISTS=0
15:03:32[2025-11-14T15:03:32.758Z] + [ 0 = 1 ]
15:03:32[2025-11-14T15:03:32.759Z] + echo â Database **** does not exist - it should have been created manually
15:03:32[2025-11-14T15:03:32.759Z] â Database **** does not exist - it should have been created manually
15:03:32[2025-11-14T15:03:32.759Z] + echo âšī¸ Run this on the PostgreSQL server:
15:03:32[2025-11-14T15:03:32.759Z] âšī¸ Run this on the PostgreSQL server:
15:03:32[2025-11-14T15:03:32.759Z] + echo python3 /path/to/create_db_user.py --username **** --password <password> --databases ****
15:03:32[2025-11-14T15:03:32.759Z] python3 /path/to/create_db_user.py --username **** --password <password> --databases ****
15:03:32[2025-11-14T15:03:32.759Z] + exit 1