Skip to content
Snippets Groups Projects
cifex_sprint_install.sh 871 B
Newer Older
  • Learn to ignore specific revisions
  • tpylak's avatar
    tpylak committed
    # 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!
    
    
    tpylak's avatar
    tpylak committed
    PREV=cifex-SNAPSHOT-S68
    
    tpylak's avatar
    tpylak committed
    NEW=cifex-S68
    
    tpylak's avatar
    tpylak committed
    INSTALL_URL=http://cisd-ci.ethz.ch:8090/cruisecontrol/artifacts/cifex/20091111140651/cifex-SNAPSHOT-r13316.zip
    
    tpylak's avatar
    tpylak committed
    
    
    tpylak's avatar
    tpylak committed
    test -d $PREV || echo Directory $PREV does not exist!
    test -d $PREV || exit 1
    
    
    tpylak's avatar
    tpylak committed
    unalias cp
    unalias rm
    
    ./cifex/jetty/bin/shutdown.sh
    mv cifex-* old/
    rm -f cifex
    
    mkdir $NEW
    ln -s $NEW cifex
    cd cifex
    wget $INSTALL_URL
    
    unzip cifex-*.zip
    OLD_INSTALL=../../old/$PREV/jetty
    cp $OLD_INSTALL/etc/service.properties .
    cp $OLD_INSTALL/etc/keystore .
    cp $OLD_INSTALL/etc/jetty.xml .
    ./install.sh ..
    
    tpylak's avatar
    tpylak committed
    cp $OLD_INSTALL/etc/jetty.properties ../jetty/etc/
    
    tpylak's avatar
    tpylak committed
    cp $OLD_INSTALL/etc/triggers.txt ../jetty/etc/
    cp $OLD_INSTALL/dssTrigger.properties ../jetty/
    
    tpylak's avatar
    tpylak committed
    
    cd ..
    rm -fr cifex
    jetty/bin/startup.sh