Use central config for env vars

This commit is contained in:
Jose Diaz-Gonzalez
2015-08-29 01:53:34 -04:00
parent e0c9f6b7f4
commit 972af5b984
5 changed files with 7 additions and 25 deletions

View File

@@ -2,16 +2,7 @@
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname "$0")/../common/functions"
source "$(dirname "$0")/functions"
POSTGRES_IMAGE=${POSTGRES_IMAGE:="postgres"}
POSTGRES_IMAGE_VERSION=${POSTGRES_IMAGE_VERSION:="9.5"}
POSTGRES_ROOT=/var/lib/dokku/services/postgres
PLUGIN_COMMAND_PREFIX="postgres"
PLUGIN_DATA_ROOT=$POSTGRES_ROOT
PLUGIN_SERVICE="Postgres"
PLUGIN_IMAGE=$POSTGRES_IMAGE
PLUGIN_IMAGE_VERSION=$POSTGRES_IMAGE_VERSION
source "$(dirname "$0")/config"
if [[ ! -d $PLUGIN_DATA_ROOT ]]; then
dokku_log_fail "$PLUGIN_SERVICE: Please run: sudo dokku plugins-install"