From 96593a52bf1ebdad9b5aef949cee979a8a71001c Mon Sep 17 00:00:00 2001 From: Sebastian Hofmann Date: Fri, 6 Sep 2024 14:42:34 +0200 Subject: [PATCH] MIR-1353-wrong command in docker migration function --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 01fad45107..f06a9517c8 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -96,7 +96,7 @@ function migrateJavaxPropertiesToJakarta() { echo "Migrate xmlns in persistence.xml from jcp.org to jakarta.ee" sed -ri "s/xmlns=\".+persistence\"/xmlns=\"https:\/\/jakarta.ee\/xml\/ns\/persistence\"/" "${PERSISTENCE_XML}" echo "Migrate schemaLocation in persistence.xml from jcp.org to jakarta.ee" - grep -ri "s/(xsi:schemaLocation=\").*jcp.org.*(\")/\1https:\/\/jakarta.ee\/xml\/ns\/persistence https:\/\/jakarta.ee\/xml\/ns\/persistence\/persistence_3_0.xsd\2/" "${PERSISTENCE_XML}" + sed -ri "s/(xsi:schemaLocation=\").*jcp.org.*(\")/\1https:\/\/jakarta.ee\/xml\/ns\/persistence https:\/\/jakarta.ee\/xml\/ns\/persistence\/persistence_3_0.xsd\2/" "${PERSISTENCE_XML}" fi if grep -q "version=\"2" "${PERSISTENCE_XML}"; then echo "Migrate version in persistence.xml from 2.* to 3.0"