@@ -594,6 +594,16 @@ function createYamlFiles {
594
594
sed -i -e " s|# value: '%ADMIN_PORT%'| value: '%ADMIN_PORT%'|g" ${apacheOutput}
595
595
fi
596
596
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
+
597
607
sed -i -e " s:%NAMESPACE%:$namespace :g" ${apacheOutput}
598
608
sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${apacheOutput}
599
609
sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${apacheOutput}
@@ -603,17 +613,6 @@ function createYamlFiles {
603
613
sed -i -e " s:%MANAGED_SERVER_PORT%:${managedServerPort} :g" ${apacheOutput}
604
614
sed -i -e " s:%LOAD_BALANCER_WEB_PORT%:$loadBalancerWebPort :g" ${apacheOutput}
605
615
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
617
616
618
617
# Apache security file
619
618
cp ${apacheSecurityInput} ${apacheSecurityOutput}
0 commit comments