|
|
@ -99,7 +99,7 @@ deploy_prod: |
|
|
|
# Sync test media directory with production
|
|
|
|
sync_test_media: |
|
|
|
@if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi |
|
|
|
@if [ `pwd` != "/akce/mam/www/mamweb-test" ]; then echo "Only possible in /akce/mam/www/mamweb-test"; exit 1; fi |
|
|
|
@if [ `readlink -f .` != "/aux/akce/mam/www/mamweb-test" ]; then echo "Only possible in /akce/mam/www/mamweb-test"; exit 1; fi |
|
|
|
rsync -av --delete /akce/mam/www/mamweb-prod/media/ ./media |
|
|
|
|
|
|
|
# Sync test database with production database
|
|
|
|