blob: bf0e644b6ff090df3be637a9a46e1e82fbdd5ccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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/
|