Files
sailing-analytics/java/target/checkbranch
T
fmittag 9c9bea0c3a update of general installation script
- added check for the right branch / server instance combination
- copies also jetty configuration files
2012-02-08 14:59:27 +01:00

16 lines
449 B
Plaintext

exec_dir=$PWD
cd /home/trac/git
active_branch=$(git symbolic-ref -q HEAD)
active_branch=`basename $active_branch`
echo Active branch is: $active_branch
cd $exec_dir
server_instance=`basename \`pwd\` | sed -e 's/[12]$//'`
echo Active server is: $server_instance
if [ $active_branch != $server_instance ]
then
echo "********** CANCEL INSTALLATION **************************"
echo "ACTIVE BRANCH DOES NOT FIT THE CURRENT SERVER INSTANCE!!!"
fi