@@ -583,6 +583,16 @@ function createYamlFiles {
583
583
sed -i -e " s|# value: '%ADMIN_PORT%'| value: '%ADMIN_PORT%'|g" ${apacheOutput}
584
584
fi
585
585
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
+
586
596
sed -i -e " s:%NAMESPACE%:$namespace :g" ${apacheOutput}
587
597
sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${apacheOutput}
588
598
sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${apacheOutput}
@@ -592,17 +602,6 @@ function createYamlFiles {
592
602
sed -i -e " s:%MANAGED_SERVER_PORT%:${managedServerPort} :g" ${apacheOutput}
593
603
sed -i -e " s:%LOAD_BALANCER_WEB_PORT%:$loadBalancerWebPort :g" ${apacheOutput}
594
604
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
606
605
607
606
# Apache security file
608
607
cp ${apacheSecurityInput} ${apacheSecurityOutput}
0 commit comments