Skip to content

Commit

Permalink
[RHPAM-2855] - Broken symlink in registry.redhat.io/rhpam-7/rhpam-kie…
Browse files Browse the repository at this point in the history
…server-rhel8 image (#397)

Signed-off-by: spolti <fspolti@redhat.com>
  • Loading branch information
spolti authored and luck3y committed Apr 26, 2021
1 parent 406e82a commit a595d9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 6 additions & 3 deletions jboss/container/maven/default/backward_compatibility.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/sh
# Configure module
set -e

# For backward compatibility
mkdir -p /usr/local/s2i
ln -s /opt/jboss/container/maven/default/scl-enable-maven /usr/local/s2i/scl-enable-maven
chown -h jboss:root /usr/local/s2i/scl-enable-maven
# scl-enable-maven is not needed on ubi8 images.
if test -r "${JBOSS_CONTAINER_MAVEN_DEFAULT_MODULE}/scl-enable-maven"; then
ln -s /opt/jboss/container/maven/default/scl-enable-maven /usr/local/s2i/scl-enable-maven
chown -h jboss:root /usr/local/s2i/scl-enable-maven
fi

ln -s /opt/jboss/container/maven/default/maven.sh /usr/local/s2i/common.sh
chown -h jboss:root /usr/local/s2i/common.sh
6 changes: 5 additions & 1 deletion jboss/container/maven/default/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ popd
MAVEN_VERSION_SQUASHED=${MAVEN_VERSION/./}

# pull in specific maven version to serve as default
ln -s /opt/jboss/container/maven/${MAVEN_VERSION_SQUASHED}/* /opt/jboss/container/maven/default
for f in /opt/jboss/container/maven/${MAVEN_VERSION_SQUASHED}/*; do
if test -f "$f"; then
ln -s "$f" /opt/jboss/container/maven/default;
fi;
done
chown -h jboss:root /opt/jboss/container/maven/default/*

# install default settings.xml file in user home
Expand Down

0 comments on commit a595d9a

Please sign in to comment.