Restructure dashboard project for docker deploying
[pharos.git] / tools / pharos-dashboard / config / postgres / docker-entrypoint-initdb.d / pharos_dashboard.sh
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 #!/bin/env bash
12
13 psql -U postgres -c "CREATE USER $DB_USER PASSWORD '$DB_PASS'"
14 psql -U postgres -c "CREATE DATABASE $DB_NAME OWNER $DB_USER"