diff options
Diffstat (limited to 'kubernetes/config/docker/init/config-init.sh')
-rwxr-xr-x | kubernetes/config/docker/init/config-init.sh | 26 |
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/ |