[POLICY] Migration of clamp to policy area
[oom.git] / kubernetes / policy / components / policy-clamp-be / resources / config / create-db-tables.sh
old mode 100644 (file)
new mode 100755 (executable)
similarity index 67%
rename from kubernetes/clamp/templates/secrets.yaml
rename to kubernetes/policy/components/policy-clamp-be/resources/config/create-db-tables.sh
index 4cf8155..329479f
@@ -1,6 +1,7 @@
+#!/bin/sh
 {{/*
-# Copyright © 2017 Amdocs, Bell Canada
-# Modifications Copyright © 2018 AT&T
+# Copyright © 2017 Amdocs, Bell Canada, AT&T
+# Modifications Copyright © 2018, 2020-2021 AT&T Intellectual Property
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -15,4 +16,4 @@
 # limitations under the License.
 */}}
 
-{{ include "common.secretFast" . }}
+mysql -h"${MYSQL_HOST}" -P"${MYSQL_PORT}" -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" policyclamp < /dbcmd-config/policy-clamp-create-tables.sql