#!/bin/bash
# Настройка pg_hba.conf
PG_HBA_FILE="$PGDATA/pg_hba.conf"
cat > "$PG_HBA_FILE" <<CONF
local   all             all                                     trust
host    all             all             127.0.0.1/32            trust
host    all             all             ::1/128                 trust
host    all             all             0.0.0.0/0               md5
CONF
chmod 600 "$PG_HBA_FILE"  # Исправлена закрывающая кавычка
