mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-05 12:48:16 +01:00
Compare commits
17 Commits
copilot/fi
...
codex/fix-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ffe78d610 | ||
|
|
cbf2ecb023 | ||
|
|
5476bd37f7 | ||
|
|
4e07681e96 | ||
|
|
4d8ccbca77 | ||
|
|
91d153f584 | ||
|
|
b5da771ba3 | ||
|
|
014dd33231 | ||
|
|
2f9721e0d7 | ||
|
|
c44737b118 | ||
|
|
bfce7f4ebd | ||
|
|
f6872bb37f | ||
|
|
4283f1dbed | ||
|
|
9236d0d85c | ||
|
|
b20ad6a1ba | ||
|
|
8c149a55d7 | ||
|
|
1d21c8b172 |
@@ -7,12 +7,15 @@ set -e
|
||||
# ======================================================================
|
||||
|
||||
if ! bashio::supervisor.ping 2>/dev/null; then
|
||||
# Source standalone bashio first to provide function definitions
|
||||
if [ -f /usr/local/lib/bashio-standalone.sh ]; then
|
||||
source /usr/local/lib/bashio-standalone.sh
|
||||
fi
|
||||
bashio::log.blue '-----------------------------------------------------------'
|
||||
bashio::log.blue "Starting addon in standalone mode (no Supervisor)"
|
||||
bashio::log.blue "Version : ${BUILD_VERSION:-1.0}"
|
||||
bashio::log.blue "Config source: ENV + /data/options.json"
|
||||
bashio::log.blue '-----------------------------------------------------------'
|
||||
source /usr/local/lib/bashio-standalone.sh
|
||||
cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio
|
||||
grep -rlZ "^#!.*bashio" /etc |
|
||||
while IFS= read -r -d '' f; do
|
||||
|
||||
@@ -64,7 +64,20 @@ if ! command -v bashio::addon.version >/dev/null 2>&1; then
|
||||
done
|
||||
fi
|
||||
|
||||
bashio::addon.version
|
||||
# Try regular bashio, fallback to standalone if unavailable or fails
|
||||
set +e
|
||||
_bv="$(bashio::addon.version 2>/dev/null)"
|
||||
_rc=$?
|
||||
set -e
|
||||
|
||||
if [ "$_rc" -ne 0 ] || [ -z "$_bv" ] || [ "$_bv" = "null" ]; then
|
||||
if [ -f /usr/local/lib/bashio-standalone.sh ]; then
|
||||
. /usr/local/lib/bashio-standalone.sh
|
||||
_bv="$(bashio::addon.version)"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$_bv"
|
||||
'
|
||||
|
||||
validate_shebang() {
|
||||
@@ -133,7 +146,7 @@ fi
|
||||
sed -i "1s|^.*|#!$shebang|" "$0"
|
||||
|
||||
if ! command -v bashio::addon.version >/dev/null 2>&1; then
|
||||
for f in /usr/lib/bashio/bashio.sh /usr/lib/bashio/lib.sh /usr/src/bashio/bashio.sh /usr/local/lib/bashio/bashio.sh; do
|
||||
for f in /usr/lib/bashio/bashio.sh /usr/lib/bashio/lib.sh /usr/src/bashio/bashio.sh /usr/local/lib/bashio/bashio.sh /usr/local/lib/bashio-standalone.sh; do
|
||||
if [ -f "$f" ]; then
|
||||
# shellcheck disable=SC1090
|
||||
. "$f"
|
||||
|
||||
@@ -83,7 +83,21 @@ if ! command -v bashio::addon.version >/dev/null 2>&1; then
|
||||
done
|
||||
fi
|
||||
|
||||
bashio::addon.version
|
||||
# Try regular bashio, fallback to standalone if unavailable or fails
|
||||
set +e
|
||||
_bv="$(bashio::addon.version 2>/dev/null)"
|
||||
_rc=$?
|
||||
set -e
|
||||
|
||||
if [ "$_rc" -ne 0 ] || [ -z "$_bv" ] || [ "$_bv" = "null" ]; then
|
||||
if [ -f /usr/local/lib/bashio-standalone.sh ]; then
|
||||
# shellcheck disable=SC1091
|
||||
. /usr/local/lib/bashio-standalone.sh
|
||||
_bv="$(bashio::addon.version)"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$_bv"
|
||||
'
|
||||
|
||||
validate_shebang() {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
## 2026.02.25-2 (25-02-2026)
|
||||
- Minor bugs fixed
|
||||
## 2026.02.25 (25-02-2026)
|
||||
- Fix FLAC for birdweather
|
||||
- Implement max species to save disk space
|
||||
|
||||
@@ -118,5 +118,5 @@ tmpfs: true
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/battybirdnet-pi
|
||||
usb: true
|
||||
version: 2026.02.25
|
||||
version: "2026.02.25-2"
|
||||
video: true
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
## 2026.02.25 (25-02-2026)
|
||||
- Minor bugs fixed
|
||||
## 2026.02.01 (01-02-2026)
|
||||
- Minor bugs fixed
|
||||
## 2026.01.21 (21-01-2026)
|
||||
|
||||
@@ -116,5 +116,5 @@ tmpfs: true
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
|
||||
usb: true
|
||||
version: 2026.02.01
|
||||
version: 2026.02.25
|
||||
video: true
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## 2.22.1-1 (2026-02-25)
|
||||
- Fix startup hang by handling node UID/GID remap failures gracefully in init script
|
||||
|
||||
|
||||
## 2.22.1 (2026-02-21)
|
||||
- Update to latest version from SignalK/signalk-server (changelog : https://github.com/SignalK/signalk-server/releases)
|
||||
|
||||
@@ -57,5 +57,5 @@ uart: true
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
usb: true
|
||||
version: "2.22.1"
|
||||
version: "2.22.1-1"
|
||||
webui: http://[HOST]:[PORT:3000]
|
||||
|
||||
@@ -16,8 +16,24 @@ chown -R "$USER:$USER" /config
|
||||
|
||||
# Set permissions
|
||||
echo "... setting permissions for node user"
|
||||
usermod -o -u 0 node
|
||||
groupmod -o -g 0 node
|
||||
if id "$USER" &>/dev/null; then
|
||||
current_uid="$(id -u "$USER")"
|
||||
current_gid="$(id -g "$USER")"
|
||||
|
||||
if [[ "$current_uid" != "0" ]]; then
|
||||
if ! usermod -o -u 0 "$USER"; then
|
||||
bashio::log.warning "Failed to set UID 0 for $USER; continuing with UID $current_uid"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$current_gid" != "0" ]]; then
|
||||
if ! groupmod -o -g 0 "$USER"; then
|
||||
bashio::log.warning "Failed to set GID 0 for $USER; continuing with GID $current_gid"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
bashio::log.warning "User $USER does not exist; continuing without UID/GID remap"
|
||||
fi
|
||||
|
||||
# Ensure 600 for SSL files
|
||||
echo "... specifying security files permissions"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
## 4.0.16.2946-3 (2026-02-25)
|
||||
- Symlink system ffprobe to /app/sonarr/bin/ where Sonarr expects it (fixes https://github.com/alexbelgium/hassio-addons/issues/2451)
|
||||
|
||||
## 4.0.16.2946-2 (2026-02-06)
|
||||
- Add ffmpeg to provide ffprobe for runtime detection (fixes https://github.com/alexbelgium/hassio-addons/issues/2451)
|
||||
|
||||
|
||||
@@ -110,4 +110,4 @@ schema:
|
||||
slug: sonarr_nas
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/sonarr
|
||||
version: "4.0.16.2946-2"
|
||||
version: "4.0.16.2946-3"
|
||||
|
||||
@@ -25,3 +25,11 @@ fi
|
||||
if [ -d /config/addons_config ]; then
|
||||
rm -rf /config/addons_config
|
||||
fi
|
||||
|
||||
# Sonarr v4 looks for ffprobe in its own binary directory (/app/sonarr/bin/)
|
||||
# via GlobalFFOptions.Configure(options => options.BinaryFolder = AppDomain.CurrentDomain.BaseDirectory)
|
||||
# Symlink the system-installed ffprobe there so Sonarr can find a working copy
|
||||
if [ -f /usr/bin/ffprobe ] && [ -d /app/sonarr/bin ]; then
|
||||
ln -sf /usr/bin/ffprobe /app/sonarr/bin/ffprobe
|
||||
echo "Symlinked /usr/bin/ffprobe to /app/sonarr/bin/ffprobe"
|
||||
fi
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
## 2.5-dev-2 (25-02-2026)
|
||||
- Minor bugs fixed
|
||||
|
||||
## 2.5-dev (2026-01-21)
|
||||
- Update to latest version from wger/server
|
||||
|
||||
@@ -67,6 +67,10 @@ ENV PACKAGES="sudo nginx"
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
|
||||
RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" || true && rm /ha_autoapps.sh
|
||||
|
||||
# Ensure sudoers entry exists after sudo package installation
|
||||
# (installing sudo may overwrite /etc/sudoers with its default conffile)
|
||||
RUN echo "wger ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||
|
||||
################
|
||||
# 4 Entrypoint #
|
||||
################
|
||||
|
||||
@@ -23,5 +23,5 @@ schema:
|
||||
slug: wger
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "2.5-dev"
|
||||
version: "2.5-dev-2"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||
|
||||
@@ -11,22 +11,22 @@ sed -i "s|/home/wger/db/database.sqlite|/data/database.sqlite|g" /home/wger/src/
|
||||
#####################
|
||||
echo "... create directories"
|
||||
mkdir -p /data/static
|
||||
if [ -d /home/wger/static ]; then
|
||||
if [ -d /home/wger/static ] && [ ! -L /home/wger/static ]; then
|
||||
if [ -n "$(ls -A /home/wger/static 2> /dev/null)" ]; then
|
||||
cp -rnf /home/wger/static/* /data/static/
|
||||
fi
|
||||
rm -r /home/wger/static
|
||||
fi
|
||||
ln -s /data/static /home/wger
|
||||
ln -sf /data/static /home/wger
|
||||
|
||||
mkdir -p /data/media
|
||||
if [ -d /home/wger/media ]; then
|
||||
if [ -d /home/wger/media ] && [ ! -L /home/wger/media ]; then
|
||||
if [ -n "$(ls -A /home/wger/media 2> /dev/null)" ]; then
|
||||
cp -rnf /home/wger/media/* /data/media/
|
||||
fi
|
||||
rm -r /home/wger/media
|
||||
fi
|
||||
ln -s /data/media /home/wger
|
||||
ln -sf /data/media /home/wger
|
||||
|
||||
#####################
|
||||
# Align permissions #
|
||||
|
||||
Reference in New Issue
Block a user