ScoDoc/config/create_database.sh

17 lines
349 B
Bash
Raw Normal View History

2020-09-26 16:19:37 +02:00
#!/bin/bash
# Create database for a ScoDoc instance
# This script must be executed as postgres user
#
# $db_name is passed ias an environment variable
source config.sh
source utils.sh
echo 'Creating postgresql database'
# ---
2020-12-19 19:22:22 +01:00
echo 'Creating postgresql database ' "$db_name"
createdb -E UTF-8 -p "$POSTGRES_PORT" -O "$POSTGRES_USER" "$db_name"
2020-09-26 16:19:37 +02:00