forked from ScoDoc/ScoDoc
17 lines
349 B
Bash
Executable File
17 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Create database for a ScoDoc departement
|
|
# This script must be executed as postgres super user
|
|
#
|
|
# $db_name is passed as an environment variable
|
|
|
|
source config.sh
|
|
source utils.sh
|
|
|
|
echo 'Creating postgresql database'
|
|
|
|
# ---
|
|
echo 'Creating postgresql database ' $db_name
|
|
createdb -E UTF-8 -p $POSTGRES_PORT -O $POSTGRES_USER $db_name
|
|
|