Roo-Code/.docker/scripts/postgres/create-databases.sh
2025-06-20 09:41:51 -07:00

11 lines
226 B
Bash
Executable file

#!/bin/bash
set -e
set -u
if [ -n "$POSTGRES_DATABASES" ]; then
for db in $(echo $POSTGRES_DATABASES | tr ',' ' '); do
echo "Creating $db..."
psql -U postgres -v ON_ERROR_STOP=1 -c "CREATE DATABASE $db;"
done
fi