Project

General

Profile

Download (629 Bytes) Statistics
| Branch: | Tag: | Revision:
1 92463307 edit-jenkins
#!/bin/bash 
2
#
3
# update the symlink for the stable folder
4
#
5
cd $WORKSPACE
6
PROJECT_VERSION=(`cat target/classes/version.properties | grep "cdmlib-remote-webapp.version" | sed -e "s/[^0-9]*\([^\n\r]*\)/\1/g"`)
7
8
if [ -n "$PROJECT_VERSION" ]; then
9
 ssh root@wp5.e-taxonomy.eu "rm -r /var/www/download/cdmserver/stable"
10
 ssh root@wp5.e-taxonomy.eu "ln -s /var/www/download/cdmserver/$PROJECT_VERSION /var/www/download/cdmserver/stable"
11
 ssh root@wp5.e-taxonomy.eu "chown -R www-data:www-data /var/www/download/cdmserver/"$PROJECT_VERSION
12
 ssh root@wp5.e-taxonomy.eu "chown -R www-data:www-data /var/www/download/cdmserver/stable"
13
fi