Skip to content
Snippets Groups Projects
Commit 4ee42179 authored by kohleman's avatar kohleman
Browse files

modified to be more robust

SVN: 14400
parent 84136d3e
No related branches found
No related tags found
No related merge requests found
# This is a very simple version of the script which installs the cifex # This is a very simple version of the script which installs the cifex
# You have to change the INSTALL_URL, PREV and NEW variables by yourself!
PREV=cifex-SNAPSHOT-S68 PREV=cifex-S72
NEW=cifex-S68 NEW=cifex-$1
INSTALL_URL=http://cisd-ci.ethz.ch:8090/cruisecontrol/artifacts/cifex/20091111140651/cifex-SNAPSHOT-r13316.zip OLD_INSTALL=~/old/$PREV/jetty
test -d $PREV || echo Directory $PREV does not exist! test -d $PREV || echo Directory $PREV does not exist!
test -d $PREV || exit 1 test -d $PREV || exit 1
unalias cp alias cp='cp'
unalias rm alias rm='rm'
./cifex/jetty/bin/shutdown.sh ./$PREV/jetty/bin/shutdown.sh
mv cifex-* old/ mv $PREV old/
rm -f cifex rm -f cifex
mkdir $NEW mkdir $NEW
ln -s $NEW cifex ln -s $NEW cifex
cd cifex cd cifex
wget $INSTALL_URL
unzip cifex-*.zip mv ../cifex*.zip .
OLD_INSTALL=~/old/$PREV/jetty unzip cifex*.zip
cd cifex cd cifex
cp $OLD_INSTALL/etc/service.properties . cp $OLD_INSTALL/work/webapp/WEB-INF/classes/service.properties ~/cifex/jetty/work/webapp/WEB-INF/classes/service.properties
cp $OLD_INSTALL/etc/keystore . cp $OLD_INSTALL/etc/keystore .
cp $OLD_INSTALL/etc/jetty.xml . cp $OLD_INSTALL/etc/jetty.xml .
./install.sh .. ./install.sh ..
cd ../jetty cd ../jetty
cp $OLD_INSTALL/etc/jetty.properties etc/ cp $OLD_INSTALL/bin/jetty.properties ~/cifex/jetty/bin/jetty.properties
cp $OLD_INSTALL/etc/triggers.txt etc/ cp $OLD_INSTALL/etc/triggers.txt ~/cifex/jetty/etc/triggers.txt
cp $OLD_INSTALL/dssTrigger.properties . cp $OLD_INSTALL/dssTrigger.properties ~/cifex/jetty/
cd .. cd ..
rm -fr cifex rm -fr cifex
......
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