Skip to content

Commit dd68261

Browse files
committed
Revert changes to create-domain.sh in domain home in image sample
Signed-off-by: doxiao <[email protected]>
1 parent 62259d7 commit dd68261

File tree

1 file changed

+0
-8
lines changed
  • kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image

1 file changed

+0
-8
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,12 @@ function validateDomainSecret {
8888

8989
# Verify the secret contains a username
9090
SECRET=`kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath='{.data}'| grep username: | wc | awk ' { print $1; }'`
91-
USERNAME=`kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath='{.data}'| grep username: | awk ' { print $1; }'`
9291
if [ "${SECRET}" != "1" ]; then
9392
validationError "The domain secret ${weblogicCredentialsSecretName} in namespace ${namespace} does contain a username"
9493
fi
9594

9695
# Verify the secret contains a password
9796
SECRET=`kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath='{.data}'| grep password: | wc | awk ' { print $1; }'`
98-
PASSWORD=`kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath='{.data}'| grep password: | awk ' { print $1; }'`
9997
if [ "${SECRET}" != "1" ]; then
10098
validationError "The domain secret ${weblogicCredentialsSecretName} in namespace ${namespace} does contain a password"
10199
fi
@@ -352,12 +350,6 @@ function createDomainHome {
352350

353351
cd docker-images/OracleWebLogic/samples/12213-domain-home-in-image
354352

355-
sed -i -e "s|myuser|${USERNAME}|g" properties/docker_build/domain_security.properties
356-
sed -i -e "s|mypassword1|${PASSWORD}|g" properties/docker_build/domain_security.properties
357-
358-
sed -i -e "s|myuser|${USERNAME}|g" properties/docker_run/security.properties
359-
sed -i -e "s|mypassword1|${PASSWORD}|g" properties/docker_run/security.properties
360-
361353
./build.sh
362354

363355
if [ "$?" != "0" ]; then

0 commit comments

Comments
 (0)