Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created February 11, 2011 16:09
Show Gist options
  • Save cspanring/822562 to your computer and use it in GitHub Desktop.
Save cspanring/822562 to your computer and use it in GitHub Desktop.
download and install nighly weave builds
#!/bin/bash
# download and install nightly weave build
# steps:
# download
# extract
# copy weave client files to www dir
# remove old weave server app from tomcat
# copy weave server app to tomcat dir
# manual step: reload OpenIndicatorsDataServices in Tomcat Manager
# reloadable="True" is not recommended for Tomcat in production
# environments due to significant runtime overhead
# http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
# download nightly
wget http://129.63.8.210:8080/nightlybuild/weave.zip
# which nightly
NIGHTLY="nightly-"$(date +%Y%m%d)
mkdir $NIGHTLY
# extract nightly
unzip weave.zip -d $NIGHTLY
# copy weave client files to tomcat webroot
cp $NIGHTLY/root/* /opt/tomcat/webapps/ROOT/weave/
# assign tomcat ownership
chown tomcat6 /opt/tomcat/webapps/ROOT/weave/*
# remove previous weave server app
rm -rf /opt/tomcat/webapps/OpenIndicatorsDataServices*
# copy nightly to tomcat
cp $NIGHTLY/OpenIndicatorsDataServices.war /opt/tomcat/webapps/
# cleanup
rm weave.zip
echo "Weave Application was successfully updated. Please reload it in your Tomcat Manager."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment