summaryrefslogtreecommitdiffstats
path: root/kubernetes/config/docker/init/config-init.sh
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-06-24 11:49:37 -0400
committerMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-06-24 11:49:37 -0400
commitd6ea987caed84a9f36030a5a1516df7c6186362d (patch)
tree265dda9cfb43a78542e4b2ccac382a8a5583bc56 /kubernetes/config/docker/init/config-init.sh
parent43d96ac929c93d0aa2a55d860e0425a39118f7b4 (diff)
onap on kubernetes source files
Change-Id: I4de34baf90979651223a28323010deb7aef21946 Signed-off-by: Mandeep Khinda <Mandeep.Khinda@amdocs.com>
Diffstat (limited to 'kubernetes/config/docker/init/config-init.sh')
-rwxr-xr-xkubernetes/config/docker/init/config-init.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/kubernetes/config/docker/init/config-init.sh b/kubernetes/config/docker/init/config-init.sh
new file mode 100755
index 0000000000..bf0e644b6f
--- /dev/null
+++ b/kubernetes/config/docker/init/config-init.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+#make owner directory
+mkdir -p /config-init/$OWNER/
+
+#unzip the configs in the owners directory ensuring no overwriting of files
+cp -vnpr /opt/config/src/* /config-init/$OWNER/
+
+#ensure db directories exist.
+mkdir -p /config-init/$OWNER/appc/data/
+mkdir -p /config-init/$OWNER/dcae/pgaas/pgdata/
+mkdir -p /config-init/$OWNER/portal/mariadb/data/
+mkdir -p /config-init/$OWNER/sdnc/data/
+mkdir -p /config-init/$OWNER/vid/mariadb/data/
+mkdir -p /config-init/$OWNER/sdc/sdc-cs/CS/
+mkdir -p /config-init/$OWNER/sdc/sdc-es/ES/
+mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-ES/
+mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-CS/
+mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-KB/
+mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-BE/
+mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-FE/
+mkdir -p /config-init/$OWNER/aai/opt/aai/logroot/
+
+chmod -R 777 /config-init/$OWNER/sdc/logs/
+chmod -R 777 /config-init/$OWNER/aai/aai-config/
+chmod -R 777 /config-init/$OWNER/aai/aai-data/
+chmod -R 777 /config-init/$OWNER/aai/opt/aai/logroot/