mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 19:34:05 +02:00
MINIO_DATA
This commit is contained in:
@@ -19,6 +19,7 @@ S3_PORT="$(bashio::addon.port 3200 || echo 3200)"
|
|||||||
# Read MinIO creds from add-on config
|
# Read MinIO creds from add-on config
|
||||||
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER' || echo minioadmin)"
|
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER' || echo minioadmin)"
|
||||||
MINIO_PASS="$(bashio::config 'MINIO_ROOT_PASSWORD' || echo minioadmin)"
|
MINIO_PASS="$(bashio::config 'MINIO_ROOT_PASSWORD' || echo minioadmin)"
|
||||||
|
MINIO_DATA="$(bashio::config 'PHOTOS_LOCATION' || echo /config/minio-data)"
|
||||||
|
|
||||||
# Env overrides Museum will merge over YAML
|
# Env overrides Museum will merge over YAML
|
||||||
export ENTE_API_ORIGIN="http://homeassistant.local:${API_PORT}"
|
export ENTE_API_ORIGIN="http://homeassistant.local:${API_PORT}"
|
||||||
@@ -82,7 +83,7 @@ fi
|
|||||||
############################################
|
############################################
|
||||||
mkdir -p /config/ente/custom-logs \
|
mkdir -p /config/ente/custom-logs \
|
||||||
/config/data \
|
/config/data \
|
||||||
/config/minio-data \
|
"$MINIO_DATA" \
|
||||||
"$PGDATA" \
|
"$PGDATA" \
|
||||||
/config/scripts/compose
|
/config/scripts/compose
|
||||||
|
|
||||||
@@ -223,8 +224,8 @@ bootstrap_internal_db() {
|
|||||||
############################################
|
############################################
|
||||||
start_minio() {
|
start_minio() {
|
||||||
bashio::log.info "Starting MinIO (:3200)..."
|
bashio::log.info "Starting MinIO (:3200)..."
|
||||||
mkdir -p /config/minio-data
|
mkdir -p "$MINIO_DATA"
|
||||||
"$MINIO_BIN" server /config/minio-data --address ":3200" &
|
"$MINIO_BIN" server "$MINIO_DATA" --address ":3200" &
|
||||||
MINIO_PID=$!
|
MINIO_PID=$!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user