mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-26 23:46:36 +00:00
- added check for the right branch / server instance combination - copies also jetty configuration files
16 lines
449 B
Plaintext
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
|
|
|
|
|