From 43010e1bd2f306f9f11b298205ada59024816f82 Mon Sep 17 00:00:00 2001 From: NorseGaud Date: Sat, 22 Feb 2020 19:15:48 -0500 Subject: [PATCH] fix for create_postgresql_tbl grep so it stops throwing a failure --- run-document-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-document-server.sh b/run-document-server.sh index 67d26f4..a18be8c 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -242,7 +242,7 @@ create_postgresql_tbl(){ CREATEDB="createdb $CONNECTION_PARAMS" # Create db on remote server - if $PSQL -lt | cut -d\| -f 1 | grep -qw | grep 0; then + if $PSQL -lt | cut -d\| -f 1 | grep -qw $POSTGRESQL_SERVER_DB_NAME | grep 0; then $CREATEDB $POSTGRESQL_SERVER_DB_NAME fi