mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-04-29 11:56:48 -05:00
- Update all of the scripts to use Bash instead of sh so I can use arrays and other bashisms - Create a complete Bash option parsing framework to replace function-lib.sh - Rewrite all of the scripts to use this framework - General script user-friendliness improvements, including loading existing environment variables by default instead of always requiring them to be specified
11 lines
215 B
Bash
11 lines
215 B
Bash
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
databases="friends super_mario_maker"
|
|
|
|
for database in $databases; do
|
|
echo "Creating database: $database"
|
|
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -c "CREATE DATABASE $database;"
|
|
done
|