From 832a8045d5b717a17e59f00897b016f74507b0e9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 26 Feb 2021 00:27:52 -0500 Subject: [PATCH] tests: fix path to Dockerfile when sourcing config for tests --- config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config b/config index b0b31fe..ac21c47 100644 --- a/config +++ b/config @@ -1,6 +1,7 @@ #!/usr/bin/env bash -export POSTGRES_IMAGE=${POSTGRES_IMAGE:="$(awk -F '[ :]' '{print $2}' Dockerfile)"} -export POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' Dockerfile)"} +_DIR="$(dirname $0)" +export POSTGRES_IMAGE=${POSTGRES_IMAGE:="$(awk -F '[ :]' '{print $2}' $_DIR/Dockerfile)"} +export POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' $_DIR/Dockerfile)"} export POSTGRES_ROOT=${POSTGRES_ROOT:="$DOKKU_LIB_ROOT/services/postgres"} export POSTGRES_HOST_ROOT=${POSTGRES_HOST_ROOT:=$POSTGRES_ROOT}