Permalink
Browse files

Only tidy up when keeping the content.

  • Loading branch information...
1 parent 2277b6e commit c0da8d7c86b3e2e7beaf755f1b1b355824787079 @buckett buckett committed Dec 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 postbuild.sh
View
@@ -24,6 +24,8 @@ if [ -d $CATALINA_HOME ] ; then
if [ -f /tmp/${BUILD_TAG}.tgz ]; then
mkdir -p ${CATALINA_HOME}/sakai/files/
tar -zxf /tmp/${BUILD_TAG}.tgz -C ${CATALINA_HOME}/sakai/files/
+ # Clean up the file we copied to /tmp
+ rm /tmp/${BUILD_TAG}.tgz
fi
# Remove existing tomcat webapps except solr
@@ -51,6 +53,4 @@ if [ -d $CATALINA_HOME ] ; then
kill $tail_pid
wait $tail_pid
- # Clean up the file we copied to /tmp
- rm /tmp/${BUILD_TAG}.tgz
fi

0 comments on commit c0da8d7

Please sign in to comment.