@@ -594,6 +594,16 @@ function createYamlFiles {
594594 sed -i -e " s|# value: '%ADMIN_PORT%'| value: '%ADMIN_PORT%'|g" ${apacheOutput}
595595 fi
596596
597+ if [ ! -z " ${loadBalancerVolumePath} " ]; then
598+ sed -i -e " s:%LOAD_BALANCER_VOLUME_PATH%:${loadBalancerVolumePath} :g" ${apacheOutput}
599+ sed -i -e " s:# volumes:volumes:g" ${apacheOutput}
600+ sed -i -e " s|# - name: %DOMAIN_UID%-apache-webtier|- name: %DOMAIN_UID%-apache-webtier|g" ${apacheOutput}
601+ sed -i -e " s:# hostPath: hostPath:g" ${apacheOutput}
602+ sed -i -e " s:# path: path:g" ${apacheOutput}
603+ sed -i -e " s:# volumeMounts:volumeMounts:g" ${apacheOutput}
604+ sed -i -e " s:# mountPath: mountPath:g" ${apacheOutput}
605+ fi
606+
597607 sed -i -e " s:%NAMESPACE%:$namespace :g" ${apacheOutput}
598608 sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${apacheOutput}
599609 sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${apacheOutput}
@@ -603,17 +613,6 @@ function createYamlFiles {
603613 sed -i -e " s:%MANAGED_SERVER_PORT%:${managedServerPort} :g" ${apacheOutput}
604614 sed -i -e " s:%LOAD_BALANCER_WEB_PORT%:$loadBalancerWebPort :g" ${apacheOutput}
605615 sed -i -e " s:%WEB_APP_PREPATH%:$loadBalancerAppPrepath :g" ${apacheOutput}
606-
607- if [ ! -z " ${loadBalancerVolumePath} " ]; then
608- sed -i -e " s:%LOAD_BALANCER_VOLUME_PATH%:${loadBalancerVolumePath} :g" ${apacheOutput}
609- sed -i -e " s:# volumes:volumes:g" ${apacheOutput}
610- sed -i -e " s:# - name:- name:g" ${apacheOutput}
611- sed -i -e " s:# hostPath: hostPath:g" ${apacheOutput}
612- sed -i -e " s:# path: path:g" ${apacheOutput}
613- sed -i -e " s:# volumeMounts:volumeMounts:g" ${apacheOutput}
614- sed -i -e " s:# - name:- name:g" ${apacheOutput}
615- sed -i -e " s:# mountPath: mountPath:g" ${apacheOutput}
616- fi
617616
618617 # Apache security file
619618 cp ${apacheSecurityInput} ${apacheSecurityOutput}
0 commit comments