Advertisement
rherrick

cleanPipeline.sh

Mar 13th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. ADMIN_EMAIL=`fgrep ADMIN_EMAIL pipeline.config | sed 's/ //g' | cut -f 2 -d =`
  2. SMTP_HOST=`fgrep SMTP_HOST pipeline.config | sed 's/ //g' | cut -f 2 -d =`
  3. XNAT_URL=`fgrep PIPELINE_REST_MAIL_SVC pipeline.config | sed 's/ //g' | sed 's#/data/.*$##' | cut -f 2 -d =`
  4.  
  5. echo Removing existing pipeline artifacts, re-running set up with admin ${ADMIN_EMAIL}, mail host ${SMTP_HOST}, and XNAT URL ${XNAT_URL}
  6. rm -r ant-tools/ bin/ catalog/ cluster_utils/ image-tools/ log4j.properties logs/ nrg-tools/ pipeline-tools/ pipeline.config sample_pipelines/ validation-tools/ xnat-tools/
  7. hg pull -u
  8. ./setup.sh ${ADMIN_EMAIL} ${SMTP_HOST} ${XNAT_URL}
  9. unset ADMIN_EMAIL SMTP_HOST XNAT_URL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement