#!/bin/sh
# Add default Maven settings with Red Hat/JBoss repositories
set -e

SCRIPT_DIR=$(dirname $0)
ADDED_DIR=${SCRIPT_DIR}/added
SOURCES_DIR="/tmp/artifacts"

cp -p ${ADDED_DIR}/standalone-openshift.xml $JBOSS_HOME/standalone/configuration/

cp ${JBOSS_HOME}/dataVirtualization/dataServiceBuilder/vdb-bench-war.war ${JBOSS_HOME}/standalone/deployments/ds-builder.war
cp ${JBOSS_HOME}/dataVirtualization/dataServiceBuilder/vdb-bench-doc.war ${JBOSS_HOME}/standalone/deployments/ds-builder-help.war
cp ${JBOSS_HOME}/dataVirtualization/dataServiceBuilder/komodo-rest.war ${JBOSS_HOME}/standalone/deployments/vdb-builder.war

rm -rf ${JBOSS_HOME}/dataVirtualization

for dir in $JBOSS_HOME/standalone /deployments; do
  chown -R jboss:root $dir
  chmod -R g+rwX $dir
done
#!/bin/sh
# Add default Maven settings with Red Hat/JBoss repositories
set -e

SCRIPT_DIR=$(dirname $0)
ADDED_DIR=${SCRIPT_DIR}/added
SOURCES_DIR="/tmp/artifacts"

cp -p ${ADDED_DIR}/standalone-openshift.xml $JBOSS_HOME/standalone/configuration/

rm -rf ${JBOSS_HOME}/dataVirtualization

for dir in $JBOSS_HOME/standalone /deployments; do
  chown -R jboss:root $dir
  chmod -R g+rwX $dir
done

Remove DSB wars from deployment
[CLOUD-2273]  Remove DSB wars from deployment
