mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01: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
|
||||
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER' || 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
|
||||
export ENTE_API_ORIGIN="http://homeassistant.local:${API_PORT}"
|
||||
@@ -82,7 +83,7 @@ fi
|
||||
############################################
|
||||
mkdir -p /config/ente/custom-logs \
|
||||
/config/data \
|
||||
/config/minio-data \
|
||||
"$MINIO_DATA" \
|
||||
"$PGDATA" \
|
||||
/config/scripts/compose
|
||||
|
||||
@@ -223,8 +224,8 @@ bootstrap_internal_db() {
|
||||
############################################
|
||||
start_minio() {
|
||||
bashio::log.info "Starting MinIO (:3200)..."
|
||||
mkdir -p /config/minio-data
|
||||
"$MINIO_BIN" server /config/minio-data --address ":3200" &
|
||||
mkdir -p "$MINIO_DATA"
|
||||
"$MINIO_BIN" server "$MINIO_DATA" --address ":3200" &
|
||||
MINIO_PID=$!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user