Skip to content

Commit

Permalink
Merge pull request #167 from jfdenise/CLOUD-3516
Browse files Browse the repository at this point in the history
Fix for CLOUD-3516, Avoid copying JBOSS_HOME content during s2i
  • Loading branch information
jfdenise authored Apr 2, 2020
2 parents a9aee13 + b07ee60 commit 58ca4ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ function copy_server_s2i_output() {
mkdir -p $WILDFLY_S2I_OUTPUT_DIR
log_info "Copying server to $WILDFLY_S2I_OUTPUT_DIR"
cp -r -L $JBOSS_HOME $WILDFLY_S2I_OUTPUT_DIR/server
rm -rf $JBOSS_HOME
rm -rf /deployments/*
log_info "Linking $JBOSS_HOME to $WILDFLY_S2I_OUTPUT_DIR"
ln -s $WILDFLY_S2I_OUTPUT_DIR/server $JBOSS_HOME
fi
else
if [ "x$S2I_COPY_SERVER" == "xtrue" ]; then
Expand Down

0 comments on commit 58ca4ae

Please sign in to comment.