@@ -583,6 +583,16 @@ function createYamlFiles {
583583 sed -i -e " s|# value: '%ADMIN_PORT%'| value: '%ADMIN_PORT%'|g" ${apacheOutput}
584584 fi
585585
586+ if [ ! -z " ${loadBalancerVolumePath} " ]; then
587+ sed -i -e " s:%LOAD_BALANCER_VOLUME_PATH%:${loadBalancerVolumePath} :g" ${apacheOutput}
588+ sed -i -e " s:# volumes:volumes:g" ${apacheOutput}
589+ sed -i -e " s|# - name: %DOMAIN_UID%-apache-webtier|- name: %DOMAIN_UID%-apache-webtier|g" ${apacheOutput}
590+ sed -i -e " s:# hostPath: hostPath:g" ${apacheOutput}
591+ sed -i -e " s:# path: path:g" ${apacheOutput}
592+ sed -i -e " s:# volumeMounts:volumeMounts:g" ${apacheOutput}
593+ sed -i -e " s:# mountPath: mountPath:g" ${apacheOutput}
594+ fi
595+
586596 sed -i -e " s:%NAMESPACE%:$namespace :g" ${apacheOutput}
587597 sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${apacheOutput}
588598 sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${apacheOutput}
@@ -592,17 +602,6 @@ function createYamlFiles {
592602 sed -i -e " s:%MANAGED_SERVER_PORT%:${managedServerPort} :g" ${apacheOutput}
593603 sed -i -e " s:%LOAD_BALANCER_WEB_PORT%:$loadBalancerWebPort :g" ${apacheOutput}
594604 sed -i -e " s:%WEB_APP_PREPATH%:$loadBalancerAppPrepath :g" ${apacheOutput}
595-
596- if [ ! -z " ${loadBalancerVolumePath} " ]; then
597- sed -i -e " s:%LOAD_BALANCER_VOLUME_PATH%:${loadBalancerVolumePath} :g" ${apacheOutput}
598- sed -i -e " s:# volumes:volumes:g" ${apacheOutput}
599- sed -i -e " s:# - name:- name:g" ${apacheOutput}
600- sed -i -e " s:# hostPath: hostPath:g" ${apacheOutput}
601- sed -i -e " s:# path: path:g" ${apacheOutput}
602- sed -i -e " s:# volumeMounts:volumeMounts:g" ${apacheOutput}
603- sed -i -e " s:# - name:- name:g" ${apacheOutput}
604- sed -i -e " s:# mountPath: mountPath:g" ${apacheOutput}
605- fi
606605
607606 # Apache security file
608607 cp ${apacheSecurityInput} ${apacheSecurityOutput}
0 commit comments