mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-15 06:09:08 +02:00
Compare commits
4 Commits
7e59aa8803
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee640954ee | ||
|
|
b99d1a94fb | ||
|
|
785269c1c2 | ||
|
|
86babf734d |
@@ -1,4 +1,8 @@
|
||||
|
||||
## 6.6.2-1 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 6.6.2 (2026-05-02)
|
||||
- Update to latest version from firefly-iii/firefly-iii (changelog : https://github.com/firefly-iii/firefly-iii/releases)
|
||||
|
||||
|
||||
@@ -104,5 +104,5 @@ slug: fireflyiii
|
||||
startup: services
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "6.6.2"
|
||||
version: "6.6.2-1"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
||||
|
||||
@@ -91,6 +91,12 @@ case $(bashio::config 'DB_CONNECTION') in
|
||||
DB_HOST=$(bashio::services "mysql" "host")
|
||||
DB_PORT=$(bashio::services "mysql" "port")
|
||||
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if DB_HOST_V4=$(getent ahostsv4 "$DB_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$DB_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $DB_HOST_V4"
|
||||
DB_HOST="$DB_HOST_V4"
|
||||
fi
|
||||
|
||||
# Always fetch service discovery credentials for bootstrap operations (CREATE DATABASE)
|
||||
BOOTSTRAP_USERNAME=$(bashio::services "mysql" "username")
|
||||
BOOTSTRAP_PASSWORD=$(bashio::services "mysql" "password")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## 5.0.0b5-3 (2026-05-10)
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 5.0.0b5-2 (26-02-2026)
|
||||
- Minor bugs fixed
|
||||
|
||||
|
||||
@@ -108,5 +108,5 @@ services:
|
||||
- mysql:want
|
||||
slug: monica
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/monica
|
||||
version: "5.0.0b5-2"
|
||||
version: "5.0.0b5-3"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||
|
||||
@@ -46,7 +46,14 @@ case "$database" in
|
||||
fi
|
||||
|
||||
# Use values
|
||||
DB_HOST=$(bashio::services "mysql" "host") && bashio::log.blue "DB_HOST=$DB_HOST" && sed -i "1a export DB_HOST=$DB_HOST" /usr/local/bin/entrypoint.sh
|
||||
DB_HOST=$(bashio::services "mysql" "host")
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if DB_HOST_V4=$(getent ahostsv4 "$DB_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$DB_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $DB_HOST_V4"
|
||||
DB_HOST="$DB_HOST_V4"
|
||||
fi
|
||||
bashio::log.blue "DB_HOST=$DB_HOST"
|
||||
sed -i "1a export DB_HOST=$DB_HOST" /usr/local/bin/entrypoint.sh
|
||||
DB_PORT=$(bashio::services "mysql" "port") && bashio::log.blue "DB_PORT=$DB_PORT" && sed -i "1a export DB_PORT=$DB_PORT" /usr/local/bin/entrypoint.sh
|
||||
DB_DATABASE=monica && bashio::log.blue "DB_DATABASE=$DB_DATABASE" && sed -i "1a export DB_DATABASE=$DB_DATABASE" /usr/local/bin/entrypoint.sh
|
||||
DB_USERNAME=$(bashio::services "mysql" "username") && bashio::log.blue "DB_USERNAME=$DB_USERNAME" && sed -i "1a export DB_USERNAME=$DB_USERNAME" /usr/local/bin/entrypoint.sh
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
## ubuntu-2026-03-05-1 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## ubuntu-2026-03-05 (2026-03-05)
|
||||
- Update to latest version from photoprism/photoprism
|
||||
## ubuntu-2025-11-30-4 (26-02-2026)
|
||||
|
||||
@@ -131,5 +131,5 @@ services:
|
||||
slug: photoprism
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "ubuntu-2026-03-05"
|
||||
version: "ubuntu-2026-03-05-1"
|
||||
video: true
|
||||
|
||||
@@ -30,7 +30,27 @@ case $(bashio::config 'DB_TYPE') in
|
||||
|
||||
# Use values
|
||||
PHOTOPRISM_DATABASE_DRIVER="mysql"
|
||||
PHOTOPRISM_DATABASE_SERVER="$(bashio::services 'mysql' 'host'):$(bashio::services 'mysql' 'port')"
|
||||
MYSQL_HOST="$(bashio::services 'mysql' 'host')"
|
||||
MYSQL_PORT="$(bashio::services 'mysql' 'port')"
|
||||
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
MYSQL_HOST_V4=""
|
||||
if command -v getent >/dev/null 2>&1; then
|
||||
MYSQL_HOST_V4="$(getent ahostsv4 "$MYSQL_HOST" 2>/dev/null | awk 'NR==1{print $1}')"
|
||||
elif command -v nslookup >/dev/null 2>&1; then
|
||||
MYSQL_HOST_V4="$(nslookup "$MYSQL_HOST" 2>/dev/null | awk '/^Address [0-9]+: / { print $3; exit } /^Address: / && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }')"
|
||||
else
|
||||
bashio::log.warning "Unable to resolve MariaDB host to IPv4: neither getent nor nslookup is available"
|
||||
fi
|
||||
|
||||
if [ -n "$MYSQL_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $MYSQL_HOST_V4"
|
||||
MYSQL_HOST="$MYSQL_HOST_V4"
|
||||
else
|
||||
bashio::log.warning "Unable to resolve MariaDB host '$MYSQL_HOST' to IPv4; continuing with hostname"
|
||||
fi
|
||||
|
||||
PHOTOPRISM_DATABASE_SERVER="${MYSQL_HOST}:${MYSQL_PORT}"
|
||||
PHOTOPRISM_DATABASE_NAME="photoprism"
|
||||
PHOTOPRISM_DATABASE_USER="$(bashio::services 'mysql' 'username')"
|
||||
PHOTOPRISM_DATABASE_PASSWORD="$(bashio::services 'mysql' 'password')"
|
||||
@@ -58,9 +78,9 @@ case $(bashio::config 'DB_TYPE') in
|
||||
bashio::log.warning "Uninstalling the MariaDB addon will remove any data"
|
||||
|
||||
# Create database
|
||||
mysql --skip-ssl --host="$(bashio::services 'mysql' 'host')" --port="$(bashio::services 'mysql' 'port')" --user="$PHOTOPRISM_DATABASE_USER" --password="$PHOTOPRISM_DATABASE_PASSWORD" -e"CREATE DATABASE IF NOT EXISTS $PHOTOPRISM_DATABASE_NAME;"
|
||||
mysql --skip-ssl --host="$MYSQL_HOST" --port="$MYSQL_PORT" --user="$PHOTOPRISM_DATABASE_USER" --password="$PHOTOPRISM_DATABASE_PASSWORD" -e"CREATE DATABASE IF NOT EXISTS $PHOTOPRISM_DATABASE_NAME;"
|
||||
# Force character set
|
||||
mysql --skip-ssl --host="$(bashio::services 'mysql' 'host')" --port="$(bashio::services 'mysql' 'port')" --user="$PHOTOPRISM_DATABASE_USER" --password="$PHOTOPRISM_DATABASE_PASSWORD" -e"ALTER DATABASE $PHOTOPRISM_DATABASE_NAME CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;" || true
|
||||
mysql --skip-ssl --host="$MYSQL_HOST" --port="$MYSQL_PORT" --user="$PHOTOPRISM_DATABASE_USER" --password="$PHOTOPRISM_DATABASE_PASSWORD" -e"ALTER DATABASE $PHOTOPRISM_DATABASE_NAME CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;" || true
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
## 12.0.18-3 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 12.0.18-2 (2026-02-22)
|
||||
- Fix download URLs containing incorrect `/seafhttp` prefix on first run by re-applying URL configuration after upstream init scripts complete.
|
||||
|
||||
|
||||
@@ -128,5 +128,5 @@ services:
|
||||
slug: seafile
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||
version: "12.0.18-2"
|
||||
version: "12.0.18-3"
|
||||
webui: http://[HOST]:[PORT:8000]
|
||||
|
||||
@@ -207,7 +207,13 @@ case "${DATABASE_SELECTION}" in
|
||||
fi
|
||||
|
||||
# Use values
|
||||
export MYSQL_HOST="$(bashio::services 'mysql' 'host')" && sed -i "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" /home/seafile/*.sh
|
||||
MYSQL_HOST="$(bashio::services 'mysql' 'host')"
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if MYSQL_HOST_V4=$(getent ahostsv4 "$MYSQL_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$MYSQL_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $MYSQL_HOST_V4"
|
||||
MYSQL_HOST="$MYSQL_HOST_V4"
|
||||
fi
|
||||
export MYSQL_HOST && sed -i "1a export MYSQL_HOST=$MYSQL_HOST" /home/seafile/*.sh
|
||||
export MYSQL_PORT="$(bashio::services 'mysql' 'port')" && sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" /home/seafile/*.sh
|
||||
export MYSQL_USER="$(bashio::services "mysql" "username")" && sed -i "1a export MYSQL_USER=$(bashio::services 'mysql' 'username')" /home/seafile/*.sh
|
||||
export MYSQL_USER_PASSWD="$(bashio::services "mysql" "password")" && sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services 'mysql' 'password')" /home/seafile/*.sh
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
## 1.38.1-1 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 1.38.1 (2026-02-21)
|
||||
- Update to latest version from zoneminder-containers/zoneminder-base (changelog : https://github.com/zoneminder-containers/zoneminder-base/releases)
|
||||
|
||||
|
||||
@@ -95,5 +95,5 @@ services:
|
||||
slug: zoneminder
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "1.38.1"
|
||||
version: "1.38.1-1"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]/zm"
|
||||
|
||||
@@ -33,6 +33,11 @@ case "$(bashio::config "DB_CONNECTION")" in
|
||||
remoteDB="1"
|
||||
ZM_DB_HOST="$(bashio::services "mysql" "host")"
|
||||
ZM_DB_PORT="$(bashio::services "mysql" "port")"
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if ZM_DB_HOST_V4=$(getent ahostsv4 "$ZM_DB_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$ZM_DB_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $ZM_DB_HOST_V4"
|
||||
ZM_DB_HOST="$ZM_DB_HOST_V4"
|
||||
fi
|
||||
ZM_DB_NAME="zm"
|
||||
ZM_DB_USER="$(bashio::services "mysql" "username")"
|
||||
ZM_DB_PASS="$(bashio::services "mysql" "password")"
|
||||
|
||||
Reference in New Issue
Block a user