diff --git a/ansible/www-standalone/tools/promote/_resha.sh b/ansible/www-standalone/tools/promote/_resha.sh index 2ee77eddf..5874c733d 100755 --- a/ansible/www-standalone/tools/promote/_resha.sh +++ b/ansible/www-standalone/tools/promote/_resha.sh @@ -6,6 +6,9 @@ site=$1 dstdir=$2 version=$3 +__dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +. ${__dirname}/settings + if [ "X${site}" == "X" ]; then echo "site argument not provided" exit 1