aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/docker/postgres_scripts/init_db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/docker/postgres_scripts/init_db.sh')
-rw-r--r--src/main/docker/postgres_scripts/init_db.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/docker/postgres_scripts/init_db.sh b/src/main/docker/postgres_scripts/init_db.sh
index cbc27a6..f01eea6 100644
--- a/src/main/docker/postgres_scripts/init_db.sh
+++ b/src/main/docker/postgres_scripts/init_db.sh
@@ -1,3 +1,23 @@
#!/bin/bash
+#*******************************************************************************
+# ============LICENSE_START=======================================================
+# son-handler
+# ================================================================================
+# Copyright (C) 2019 Wipro Limited.
+# ==============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+#
+#*******************************************************************************
psql -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'pci_ms'" | grep -q 1 || psql -U postgres -c "CREATE DATABASE pci_ms"