-
Notifications
You must be signed in to change notification settings - Fork 1
/
config
executable file
·25 lines (23 loc) · 893 Bytes
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
export MINIO_IMAGE=${MINIO_IMAGE:="minio/minio"}
export MINIO_IMAGE_VERSION=${MINIO_IMAGE_VERSION:="latest"}
export MINIO_ROOT=${MINIO_ROOT:="/var/lib/dokku/services/minio"}
export PLUGIN_COMMAND_PREFIX="minio"
export PLUGIN_CONFIG_ROOT=${PLUGIN_CONFIG_ROOT:="$DOKKU_LIB_ROOT/config/$PLUGIN_COMMAND_PREFIX"}
export PLUGIN_DATA_ROOT=$MINIO_ROOT
export PLUGIN_DATASTORE_PORTS=(9000)
export PLUGIN_DATASTORE_WAIT_PORT=9000
export PLUGIN_DEFAULT_ALIAS="MINIO"
export PLUGIN_ALT_ALIAS="DOKKU_MINIO"
export PLUGIN_IMAGE=$MINIO_IMAGE
export PLUGIN_IMAGE_VERSION=$MINIO_IMAGE_VERSION
export PLUGIN_SCHEME="http"
export PLUGIN_SERVICE="Minio"
export PLUGIN_VARIABLE="MINIO"
export PLUGIN_BASE_PATH="$PLUGIN_PATH"
if [[ -n $DOKKU_API_VERSION ]]; then
export PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH"
fi
if [[ -d "$PLUGIN_DATA_ROOT/*" ]]; then
rm -rf "${PLUGIN_DATA_ROOT:?}/*"
fi