Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update rsync

  • Loading branch information...
commit 775ea4eeb3d7bf4b65c1dd45649a4fa4aa38ee36 1 parent 6e8ad8e
@bdecoste bdecoste authored
View
4 cartridges/openshift-origin-cartridge-abstract/abstract-jboss/info/bin/deploy.sh
@@ -14,7 +14,9 @@ CART_NAME=$(get_cartridge_name_from_path)
if [ ! -h ${OPENSHIFT_REPO_DIR}/deployments ] && [ ! -h ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments ]
then
if [ "$(ls ${OPENSHIFT_REPO_DIR}/deployments)" ]; then
- rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/* ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments
+ rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/ ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/
+ else
+ rm -rf ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/*
fi
fi
View
7 cartridges/openshift-origin-cartridge-jbossas-7/info/bin/build.sh
@@ -96,9 +96,10 @@ then
if [ ! -h ${OPENSHIFT_REPO_DIR}/deployments ] && [ ! -h ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments ]
then
if [ "$(ls ${OPENSHIFT_REPO_DIR}/deployments)" ]; then
- rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/* ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments
- fi
- fi
+ rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/ ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/
+ else
+ rm -rf ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/*
+ fi
fi
else
export OPENSHIFT_MAVEN_MIRROR
View
6 cartridges/openshift-origin-cartridge-jbosseap-6.0/info/bin/build.sh
@@ -96,8 +96,10 @@ then
if [ ! -h ${OPENSHIFT_REPO_DIR}/deployments ] && [ ! -h ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments ]
then
if [ "$(ls ${OPENSHIFT_REPO_DIR}/deployments)" ]; then
- rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/* ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments
- fi
+ rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/ ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/
+ else
+ rm -rf ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/*
+ fi
fi
fi
else
View
6 cartridges/openshift-origin-cartridge-jbosseap/bin/control
@@ -178,8 +178,10 @@ function deploy() {
CART_NAME=redhat-${cartridge_type}
if [ "$(ls ${OPENSHIFT_REPO_DIR}/deployments)" ]; then
- rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/* ${OPENSHIFT_HOMEDIR}/${CART_NAME}/standalone/deployments
- fi
+ rsync -r --delete --exclude ".*" ${OPENSHIFT_REPO_DIR}/deployments/ ${OPENSHIFT_HOMEDIR}/${CART_NAME}/standalone/deployments/
+ else
+ rm -rf ${OPENSHIFT_HOMEDIR}/${CART_NAME}/${CART_NAME}/standalone/deployments/*
+ fi
}
function start() {
Please sign in to comment.
Something went wrong with that request. Please try again.