diff --git a/config b/config index 746a975..7e55857 100644 --- a/config +++ b/config @@ -1,10 +1,10 @@ #!/usr/bin/env bash export MONGO_IMAGE=${MONGO_IMAGE:="mongo"} export MONGO_IMAGE_VERSION=${MONGO_IMAGE_VERSION:="3.0.6"} -export MONGO_ROOT=/var/lib/dokku/services/mongo +export MONGO_ROOT=${MONGO_ROOT:="/var/lib/dokku/services/mongo"} export PLUGIN_COMMAND_PREFIX="mongo" -export PLUGIN_DATA_ROOT=${PLUGIN_DATA_ROOT:="$MONGO_ROOT"} +export PLUGIN_DATA_ROOT=$MONGO_ROOT export PLUGIN_DATASTORE_PORTS=(27017 27018 27019 28017) export PLUGIN_DEFAULT_ALIAS="MONGO" export PLUGIN_IMAGE=$MONGO_IMAGE diff --git a/tests/test_helper.bash b/tests/test_helper.bash index eb0c287..560cbb5 100644 --- a/tests/test_helper.bash +++ b/tests/test_helper.bash @@ -8,7 +8,8 @@ export PLUGIN_PATH="$DOKKU_ROOT/plugins" export PLUGIN_ENABLED_PATH="$PLUGIN_PATH" export PLUGIN_AVAILABLE_PATH="$PLUGIN_PATH" export PLUGIN_CORE_AVAILABLE_PATH="$PLUGIN_PATH" -export PLUGIN_DATA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/fixtures" +export MONGO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/fixtures" +export PLUGIN_DATA_ROOT="$MONGO_ROOT" mkdir -p "$PLUGIN_DATA_ROOT" rm -rf "${PLUGIN_DATA_ROOT:?}"/*