From 5efed702be5f6b418014f717964c4e64dea31425 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Sun, 29 Sep 2019 00:37:34 +0200 Subject: [PATCH] =?UTF-8?q?Makefile:=20sync=5Ftest=20je=20v=C3=ADc=20user-?= =?UTF-8?q?friendly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pavel --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c34c0a0e..33e1f229 100644 --- a/Makefile +++ b/Makefile @@ -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