equal
deleted
inserted
replaced
2 set -e |
2 set -e |
3 if [ -d ~/tmp/regardssignes_V$1 ]; then |
3 if [ -d ~/tmp/regardssignes_V$1 ]; then |
4 rm -fr ~/tmp/regardssignes_V$1; |
4 rm -fr ~/tmp/regardssignes_V$1; |
5 fi |
5 fi |
6 |
6 |
7 hg archive -r V$1 ~/tmp/platform_V$1 |
7 hg archive -r V$1 ~/tmp/regardssignes_V$1 |
|
8 echo "archive done" |
8 |
9 |
9 #text2unix ~/tmp/regardssignes_V$1/web |
10 #text2unix ~/tmp/regardssignes_V$1/web |
10 |
11 |
11 if [ -d ~/tmp/regardssignes_V$1/web ]; then |
12 if [ -d ~/tmp/regardssignes_V$1/web ]; then |
12 cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/ |
13 cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/ |
28 if [ -d ~/tmp/regardssignes_V$1 ]; then |
29 if [ -d ~/tmp/regardssignes_V$1 ]; then |
29 echo "Deleting temp export" |
30 echo "Deleting temp export" |
30 rm -fr ~/tmp/regardssignes_V$1; |
31 rm -fr ~/tmp/regardssignes_V$1; |
31 fi |
32 fi |
32 |
33 |
33 ssh web.iri.centrepompidou.fr sudo apache2ctl restart |
34 #ssh web.iri.centrepompidou.fr sudo apache2ctl restart |