#!/bin/bash

INSTALL_DIR=$(pwd)

# Definiowanie pliku userlist.txt dla pgBouncer
cat > /etc/pgbouncer/userlist.txt <<EOF
"postgres" ""
"edokumenty" ""
"http" ""
EOF

# Konfiguracja pgBouncer
cat "$INSTALL_DIR/conf/etc/pgbouncer/pgbouncer.ini" > /etc/pgbouncer/pgbouncer.ini