File tree 6 files changed +6
-6
lines changed
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ docker_process_sql() {
188
188
# create initial database
189
189
# uses environment variables for input: POSTGRES_DB
190
190
docker_setup_db () {
191
- if [ " $POSTGRES_DB " != ' postgres' ]; then
191
+ if [ " $POSTGRES_DB " != ' postgres' ] || [ " $POSTGRES_DB " != ' template1 ' ] ; then
192
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db=" $POSTGRES_DB " << -'EOSQL '
193
193
CREATE DATABASE :"db" ;
194
194
EOSQL
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ docker_process_sql() {
188
188
# create initial database
189
189
# uses environment variables for input: POSTGRES_DB
190
190
docker_setup_db () {
191
- if [ " $POSTGRES_DB " != ' postgres' ]; then
191
+ if [ " $POSTGRES_DB " != ' postgres' ] || [ " $POSTGRES_DB " != ' template1 ' ] ; then
192
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db=" $POSTGRES_DB " << -'EOSQL '
193
193
CREATE DATABASE :"db" ;
194
194
EOSQL
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ docker_process_sql() {
188
188
# create initial database
189
189
# uses environment variables for input: POSTGRES_DB
190
190
docker_setup_db () {
191
- if [ " $POSTGRES_DB " != ' postgres' ]; then
191
+ if [ " $POSTGRES_DB " != ' postgres' ] || [ " $POSTGRES_DB " != ' template1 ' ] ; then
192
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db=" $POSTGRES_DB " << -'EOSQL '
193
193
CREATE DATABASE :"db" ;
194
194
EOSQL
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ docker_process_sql() {
188
188
# create initial database
189
189
# uses environment variables for input: POSTGRES_DB
190
190
docker_setup_db () {
191
- if [ " $POSTGRES_DB " != ' postgres' ]; then
191
+ if [ " $POSTGRES_DB " != ' postgres' ] || [ " $POSTGRES_DB " != ' template1 ' ] ; then
192
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db=" $POSTGRES_DB " << -'EOSQL '
193
193
CREATE DATABASE :"db" ;
194
194
EOSQL
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ docker_process_sql() {
188
188
# create initial database
189
189
# uses environment variables for input: POSTGRES_DB
190
190
docker_setup_db () {
191
- if [ " $POSTGRES_DB " != ' postgres' ]; then
191
+ if [ " $POSTGRES_DB " != ' postgres' ] || [ " $POSTGRES_DB " != ' template1 ' ] ; then
192
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db=" $POSTGRES_DB " << -'EOSQL '
193
193
CREATE DATABASE :"db" ;
194
194
EOSQL
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ docker_process_sql() {
188
188
# create initial database
189
189
# uses environment variables for input: POSTGRES_DB
190
190
docker_setup_db () {
191
- if [ " $POSTGRES_DB " != ' postgres' ]; then
191
+ if [ " $POSTGRES_DB " != ' postgres' ] || [ " $POSTGRES_DB " != ' template1 ' ] ; then
192
192
POSTGRES_DB= docker_process_sql --dbname postgres --set db=" $POSTGRES_DB " << -'EOSQL '
193
193
CREATE DATABASE :"db" ;
194
194
EOSQL
You can’t perform that action at this time.
0 commit comments