sbin/sync/sync_regardssignes
changeset 0 368be7c741c4
child 11 777eed530773
equal deleted inserted replaced
-1:000000000000 0:368be7c741c4
       
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/regardssignes_V$1 ]; then
       
     4     rm -fr ~/tmp/regardssignes_V$1;
       
     5 fi
       
     6 
       
     7 hg archive -r V$1 ~/tmp/platform_V$1
       
     8 
       
     9 #text2unix ~/tmp/regardssignes_V$1/web
       
    10 
       
    11 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 + core
       
    14 P .htpasswd
       
    15 P .htaccess
       
    16 P regardssignes/.htaccess
       
    17 P regardssignes/config.py
       
    18 P regardssignes/modwsgi.wsgi
       
    19 P robots.txt
       
    20 P env/***
       
    21 P log/***
       
    22 P index/***
       
    23 P static/media/***
       
    24 P static/content/***
       
    25 EOT
       
    26 fi
       
    27 
       
    28 if [ -d ~/tmp/regardssignes_V$1 ]; then
       
    29     echo "Deleting temp export"
       
    30     rm -fr ~/tmp/regardssignes_V$1;
       
    31 fi
       
    32 
       
    33 ssh web.iri.centrepompidou.fr sudo apache2ctl restart