File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
jboss/container/maven/default Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22# Configure module
33set -e
4-
54# For backward compatibility
65mkdir -p /usr/local/s2i
7- ln -s /opt/jboss/container/maven/default/scl-enable-maven /usr/local/s2i/scl-enable-maven
8- chown -h jboss:root /usr/local/s2i/scl-enable-maven
6+ # scl-enable-maven is not needed on ubi8 images.
7+ if test -r " ${JBOSS_CONTAINER_MAVEN_DEFAULT_MODULE} /scl-enable-maven" ; then
8+ ln -s /opt/jboss/container/maven/default/scl-enable-maven /usr/local/s2i/scl-enable-maven
9+ chown -h jboss:root /usr/local/s2i/scl-enable-maven
10+ fi
11+
912ln -s /opt/jboss/container/maven/default/maven.sh /usr/local/s2i/common.sh
1013chown -h jboss:root /usr/local/s2i/common.sh
Original file line number Diff line number Diff line change 1818MAVEN_VERSION_SQUASHED=${MAVEN_VERSION/ ./ }
1919
2020# pull in specific maven version to serve as default
21- ln -s /opt/jboss/container/maven/${MAVEN_VERSION_SQUASHED} /* /opt/jboss/container/maven/default
21+ for f in /opt/jboss/container/maven/${MAVEN_VERSION_SQUASHED} /* ; do
22+ if test -f " $f " ; then
23+ ln -s " $f " /opt/jboss/container/maven/default;
24+ fi ;
25+ done
2226chown -h jboss:root /opt/jboss/container/maven/default/*
2327
2428# install default settings.xml file in user home
You can’t perform that action at this time.
0 commit comments