0
|
1 |
#!/usr/bin/env bash
|
|
2 |
set -e
|
11
|
3 |
if [ -d ~/tmp/eulalie_V$1 ]; then
|
|
4 |
rm -fr ~/tmp/eulalie_V$1;
|
0
|
5 |
fi
|
|
6 |
|
11
|
7 |
hg archive -r V$1 ~/tmp/eulalie_V$1
|
0
|
8 |
|
11
|
9 |
#text2unix ~/tmp/eulalie_V$1
|
0
|
10 |
|
11
|
11 |
if [ -d ~/tmp/eulalie_V$1 ]; then
|
31
|
12 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/eulalie_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/web/eulalie/
|
0
|
13 |
+ core
|
|
14 |
P .htpasswd
|
|
15 |
P .htaccess
|
21
|
16 |
P eulalie/.htaccess
|
|
17 |
P eulalie/config.py
|
0
|
18 |
P robots.txt
|
|
19 |
P env/***
|
|
20 |
P log/***
|
|
21 |
P index/***
|
|
22 |
P static/media/***
|
|
23 |
EOT
|
|
24 |
fi
|
|
25 |
|
11
|
26 |
if [ -d ~/tmp/eulalie_V$1 ]; then
|
0
|
27 |
echo "Deleting temp export"
|
11
|
28 |
rm -fr ~/tmp/eulalie_V$1;
|
0
|
29 |
fi
|
45
|
30 |
|
|
31 |
ssh iri@web.iri.centrepompidou.fr sudo apache2ctl restart
|