From 5de321788c1eb630cfb8ffb1e5aea68980dfa673 Mon Sep 17 00:00:00 2001 From: "Martin Z. (Zimamazim)" Date: Thu, 26 Sep 2019 21:53:28 +0200 Subject: [PATCH] =?UTF-8?q?Upraven=20Makefile,=20aby=20=C5=A1el=20pustit?= =?UTF-8?q?=20"make=20deploy=5Fprod"=20i=20p=C5=99es=20symlinky.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1df825e4..11852922 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ deploy_test: # Deploy to current *mamweb-prod* directory deploy_prod: @if [ ${USER} != "mam-web" ]; then echo "Only possible by user mam-web"; exit 1; fi - @if [ `pwd` != "/akce/mam/www/mamweb-prod" ]; then echo "Only possible in /akce/mam/www/mamweb-prod"; exit 1; fi + @if [ `readlink -f .` != "/aux/akce/mam/www/mamweb-prod" ]; then echo "Only possible in directory mamweb-prod"; exit 1; fi @echo "Backing up production DB ..." ( cd .. && ./backup_prod_db.sh ) @echo "Installing version from origin/master ..."