blob: bf0e644b6ff090df3be637a9a46e1e82fbdd5ccb [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001#!/bin/bash
2#make owner directory
3mkdir -p /config-init/$OWNER/
4
5#unzip the configs in the owners directory ensuring no overwriting of files
6cp -vnpr /opt/config/src/* /config-init/$OWNER/
7
8#ensure db directories exist.
9mkdir -p /config-init/$OWNER/appc/data/
10mkdir -p /config-init/$OWNER/dcae/pgaas/pgdata/
11mkdir -p /config-init/$OWNER/portal/mariadb/data/
12mkdir -p /config-init/$OWNER/sdnc/data/
13mkdir -p /config-init/$OWNER/vid/mariadb/data/
14mkdir -p /config-init/$OWNER/sdc/sdc-cs/CS/
15mkdir -p /config-init/$OWNER/sdc/sdc-es/ES/
16mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-ES/
17mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-CS/
18mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-KB/
19mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-BE/
20mkdir -p /config-init/$OWNER/sdc/logs/ASDC/ASDC-FE/
21mkdir -p /config-init/$OWNER/aai/opt/aai/logroot/
22
23chmod -R 777 /config-init/$OWNER/sdc/logs/
24chmod -R 777 /config-init/$OWNER/aai/aai-config/
25chmod -R 777 /config-init/$OWNER/aai/aai-data/
26chmod -R 777 /config-init/$OWNER/aai/opt/aai/logroot/