Skip to content

Commit 268277c

Browse files
authored
Merge pull request #1220 from oracle/fixsedsyntax
WIP: fix image and dburl in utility.sh
2 parents 615c1a8 + 52490c3 commit 268277c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

kubernetes/samples/scripts/common/utility.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ function createFiles {
349349
defaultImageName="`basename ${domainHomeImageBuildPath} | sed 's/^[0-9]*-//'`"
350350
baseTag=${domainHomeImageBase#*:}
351351
defaultImageName=${defaultImageName}:${baseTag:-"latest"}
352-
sed -i -e "s:%IMAGE_NAME%:${defaultImageName}:g" ${domainPropertiesOutput}
352+
sed -i -e "s|%IMAGE_NAME%|${defaultImageName}|g" ${domainPropertiesOutput}
353353
else
354-
sed -i -e "s:%IMAGE_NAME%:${image}:g" ${domainPropertiesOutput}
354+
sed -i -e "s|%IMAGE_NAME%|${image}|g" ${domainPropertiesOutput}
355355
fi
356356
else
357357

@@ -406,7 +406,7 @@ function createFiles {
406406
# extra entries for FMW Infra domains
407407
sed -i -e "s:%RCU_CREDENTIALS_SECRET_NAME%:${rcuCredentialsSecret}:g" ${createJobOutput}
408408
sed -i -e "s:%CUSTOM_RCUPREFIX%:${rcuSchemaPrefix}:g" ${createJobOutput}
409-
sed -i -e "s:%CUSTOM_CONNECTION_STRING%:${rcuDatabaseURL}:g" ${createJobOutput}
409+
sed -i -e "s|%CUSTOM_CONNECTION_STRING%|${rcuDatabaseURL}|g" ${createJobOutput}
410410
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3Channel}:g" ${createJobOutput}
411411
# entries for Istio
412412
sed -i -e "s:%ISTIO_PREFIX%:${istioPrefix}:g" ${createJobOutput}
@@ -482,9 +482,9 @@ function createFiles {
482482

483483
# now we know which image to use, update the domain yaml file
484484
if [ -z $image ]; then
485-
sed -i -e "s:%WEBLOGIC_IMAGE%:${defaultImageName}:g" ${dcrOutput}
485+
sed -i -e "s|%WEBLOGIC_IMAGE%|${defaultImageName}|g" ${dcrOutput}
486486
else
487-
sed -i -e "s:%WEBLOGIC_IMAGE%:${image}:g" ${dcrOutput}
487+
sed -i -e "s|%WEBLOGIC_IMAGE%|${image}|g" ${dcrOutput}
488488
fi
489489
else
490490
sed -i -e "s:%WEBLOGIC_IMAGE%:${image}:g" ${dcrOutput}
@@ -551,5 +551,4 @@ function createDomain {
551551

552552
# Print a summary
553553
printSummary
554-
}
555-
554+
}

0 commit comments

Comments
 (0)