From 1fbaee6caf133762db0fd1d65218467febe50a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Mon, 14 Sep 2020 18:20:26 +0200 Subject: [PATCH] Update portal-upgrade.sh --- scripts/portal-upgrade.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/portal-upgrade.sh b/scripts/portal-upgrade.sh index b2973809..4d04f30e 100755 --- a/scripts/portal-upgrade.sh +++ b/scripts/portal-upgrade.sh @@ -2,6 +2,9 @@ set -e # exit on first error +# get current working directory (pwd doesn't cut it) +cwd=$(cd -P -- "$(dirname -- "$0")" && pwd -P) + # put the server down for maintenance . ${cwd}/portal-down.sh