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