root/deployment-scripts/01_update.sh

Revision 92, 491 bytes (checked in by 235, 2 years ago)

ignore empty username

Line 
1#!/bin/sh
2source settings
3echo "Checking out from $SVN ==== "
4echo
5
6REV=`echo "$QUERY_STRING" | sed "s/['\"\/\;]//g"| head -n1`
7REVPARAM=""
8if [ $REV ]
9then
10   echo "CHEKING OUT REVISION $REV ==== "
11   REVPARAM="--revision $REV"
12fi
13
14USERPARAM=""
15if [ $USER ]
16then
17   USERPARAM="--username $USER --password $PASSWD"
18fi
19svn $REVPARAM $USERPARAM co $SVN ./
20
21#chown www-data:www-data -R ./htdocs
22find ./ -name *.pyc | xargs rm -R
23
24echo
25echo "Current FULL list of the files ==== "
26echo
27ls -R ./
28
Note: See TracBrowser for help on using the browser.