mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-08 01:01:35 +02:00
Compare commits
8 Commits
claude/ent
...
bc3801f290
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc3801f290 | ||
|
|
1e66d635f3 | ||
|
|
a8dbdabc40 | ||
|
|
cd5ce11c37 | ||
|
|
f77964e501 | ||
|
|
a8d67aa4a6 | ||
|
|
fe00c57724 | ||
|
|
d47d0e197d |
@@ -1,3 +1,5 @@
|
||||
## 4.4.22-7 (04-06-2026)
|
||||
- Minor bugs fixed
|
||||
## 4.4.22-6 (04-06-2026)
|
||||
- Fix SIGPIPE (exit 141) on startup: tr piped to head -c against /dev/urandom
|
||||
now suppresses the expected SIGPIPE under set -o pipefail
|
||||
|
||||
@@ -131,6 +131,6 @@ schema:
|
||||
slug: ente
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "4.4.22-6"
|
||||
version: "4.4.22-7"
|
||||
video: true
|
||||
webui: http://[HOST]:[PORT:3000]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
set -euo pipefail
|
||||
|
||||
# Internal MinIO credentials (not user-configurable; MinIO is 127.0.0.1 only)
|
||||
MINIO_CRED_FILE="/config/minio-creds"
|
||||
@@ -10,14 +9,14 @@ if [ -f "$MINIO_CRED_FILE" ]; then
|
||||
MINIO_PASS="$(sed -n '2p' "$MINIO_CRED_FILE")"
|
||||
# Regenerate if file is corrupted
|
||||
if [ -z "$MINIO_USER" ] || [ -z "$MINIO_PASS" ]; then
|
||||
MINIO_USER="minio_$(tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 8 || true)"
|
||||
MINIO_USER="minio_$(head -c 4 /dev/urandom | od -An -tx1 | tr -d ' \n')"
|
||||
MINIO_PASS="$(head -c 24 /dev/urandom | base64 | tr -d '\n')"
|
||||
printf '%s\n%s\n' "$MINIO_USER" "$MINIO_PASS" > "$MINIO_CRED_FILE"
|
||||
chmod 600 "$MINIO_CRED_FILE"
|
||||
fi
|
||||
else
|
||||
# Generate random credentials on first run
|
||||
MINIO_USER="minio_$(tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 8 || true)"
|
||||
MINIO_USER="minio_$(head -c 4 /dev/urandom | od -An -tx1 | tr -d ' \n')"
|
||||
MINIO_PASS="$(head -c 24 /dev/urandom | base64 | tr -d '\n')"
|
||||
printf '%s\n%s\n' "$MINIO_USER" "$MINIO_PASS" > "$MINIO_CRED_FILE"
|
||||
chmod 600 "$MINIO_CRED_FILE"
|
||||
|
||||
Reference in New Issue
Block a user