Skip to content
Snippets Groups Projects
Commit fb8e8f27 authored by Fabio Hernandez's avatar Fabio Hernandez
Browse files

Remove contents of deploy directory before deploying

parent 463afaa0
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,7 @@ tar -cf ${tempFile} \
./setup.sh \
./nordugrid-arc6-client.sif \
./examples
rm -rf ${deployDir}/*
tar --dir ${deployDir} -xf ${tempFile}
#
......@@ -106,4 +107,4 @@ done
# Modify setup.sh to adapt it to the deployment directory
#
deployDir=$(readlink -f ${deployDir})
sed --in-place -e "s|XXX_DEPLOY_DIR_XXX|${deployDir}|g" ${deployDir}/setup.sh
\ No newline at end of file
sed --in-place -e "s|XXX_DEPLOY_DIR_XXX|${deployDir}|g" ${deployDir}/setup.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment