ваше сообщение коммита

This commit is contained in:
2025-04-21 10:40:57 +03:00
parent f371521511
commit 16c3534239
22 changed files with 637 additions and 84 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -e
host="$1"
shift
port="$1"
shift
cmd="$@"
until PGPASSWORD=$DB_PASSWORD psql -h "$host" -U "$DB_USER" -p "$port" -d "$DB_NAME" -c '\q'; do
>&2 echo "Ожидание подключения к PostgreSQL..."
sleep 1
done
>&2 echo "PostgreSQL запущен - выполнение команды"
exec $cmd