1 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
aba832028c Initial plan 2026-02-25 15:00:10 +00:00
17 changed files with 15 additions and 85 deletions

View File

@@ -7,15 +7,12 @@ 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

View File

@@ -64,20 +64,7 @@ if ! command -v bashio::addon.version >/dev/null 2>&1; then
done
fi
# 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"
bashio::addon.version
'
validate_shebang() {
@@ -146,7 +133,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 /usr/local/lib/bashio-standalone.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; do
if [ -f "$f" ]; then
# shellcheck disable=SC1090
. "$f"

View File

@@ -83,21 +83,7 @@ if ! command -v bashio::addon.version >/dev/null 2>&1; then
done
fi
# 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"
bashio::addon.version
'
validate_shebang() {

View File

@@ -1,5 +1,3 @@
## 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

View File

@@ -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-2"
version: 2026.02.25
video: true

View File

@@ -1,5 +1,3 @@
## 2026.02.25 (25-02-2026)
- Minor bugs fixed
## 2026.02.01 (01-02-2026)
- Minor bugs fixed
## 2026.01.21 (21-01-2026)

View File

@@ -116,5 +116,5 @@ tmpfs: true
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
usb: true
version: 2026.02.25
version: 2026.02.01
video: true

View File

@@ -1,6 +1,3 @@
## 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)

View File

@@ -57,5 +57,5 @@ uart: true
udev: true
url: https://github.com/alexbelgium/hassio-addons
usb: true
version: "2.22.1-1"
version: "2.22.1"
webui: http://[HOST]:[PORT:3000]

View File

@@ -16,24 +16,8 @@ chown -R "$USER:$USER" /config
# Set permissions
echo "... setting permissions for node user"
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
usermod -o -u 0 node
groupmod -o -g 0 node
# Ensure 600 for SSL files
echo "... specifying security files permissions"

View File

@@ -1,7 +1,4 @@
## 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)

View File

@@ -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-3"
version: "4.0.16.2946-2"

View File

@@ -25,11 +25,3 @@ 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

View File

@@ -1,5 +1,3 @@
## 2.5-dev-2 (25-02-2026)
- Minor bugs fixed
## 2.5-dev (2026-01-21)
- Update to latest version from wger/server

View File

@@ -67,10 +67,6 @@ 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 #
################

View File

@@ -23,5 +23,5 @@ schema:
slug: wger
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "2.5-dev-2"
version: "2.5-dev"
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"

View File

@@ -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 ] && [ ! -L /home/wger/static ]; then
if [ -d /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 -sf /data/static /home/wger
ln -s /data/static /home/wger
mkdir -p /data/media
if [ -d /home/wger/media ] && [ ! -L /home/wger/media ]; then
if [ -d /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 -sf /data/media /home/wger
ln -s /data/media /home/wger
#####################
# Align permissions #