diff --git a/configBuilder.sh b/configBuilder.sh index c49122c..f49517c 100755 --- a/configBuilder.sh +++ b/configBuilder.sh @@ -511,8 +511,11 @@ echo "" echo "Creating sanitized config for hybrid build..." echo "" destPath=./ConfigNoSecrets -cp -rf `realpath ${PWD}`/. $destPath >/dev/null 2>>/dev/null -mkdir -p ./ConfigNoSecrets/SECRETS +destPathName=ConfigNoSecrets +# check for rsync +command -v rsync >/dev/null 2>&1 || { echo >&2 "ERROR: rsync is required, but doesn't appear to be installed. Aborting..."; exit 1; } +rsync -a . ${destPath} --exclude ${destPathName} +mkdir -p ${destPath}/SECRETS # move secrets mv -f $destPath/config/shib-idp/conf/idp.properties $destPath/SECRETS/idp.properties > /dev/null