Rework how config vars are sourced

- ensure we source config/functions from the correct directory
- move config sourcing up before DOKKU_TRACE to reduce trace output
This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 03:10:41 -04:00
parent 78fcca6896
commit 543fdaa633
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/config"
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname "$0")/config"
if ! docker images | grep -e "^$PLUGIN_IMAGE " | grep -q "$PLUGIN_IMAGE_VERSION" ; then
docker pull "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION"