DAS_2024_1/borschevskaya_anna_lab_3/init-database.sh

8 lines
190 B
Bash
Raw Permalink Normal View History

2024-09-29 15:49:34 +04:00
#!/bin/bash
set -e
# Создаем БД
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE DATABASE company;
CREATE DATABASE vacancy;
EOSQL