mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-04 13:20:05 +02:00
Compare commits
1 Commits
codex/fix-
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aba832028c |
@@ -7,15 +7,12 @@ set -e
|
|||||||
# ======================================================================
|
# ======================================================================
|
||||||
|
|
||||||
if ! bashio::supervisor.ping 2>/dev/null; then
|
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 '-----------------------------------------------------------'
|
||||||
bashio::log.blue "Starting addon in standalone mode (no Supervisor)"
|
bashio::log.blue "Starting addon in standalone mode (no Supervisor)"
|
||||||
bashio::log.blue "Version : ${BUILD_VERSION:-1.0}"
|
bashio::log.blue "Version : ${BUILD_VERSION:-1.0}"
|
||||||
bashio::log.blue "Config source: ENV + /data/options.json"
|
bashio::log.blue "Config source: ENV + /data/options.json"
|
||||||
bashio::log.blue '-----------------------------------------------------------'
|
bashio::log.blue '-----------------------------------------------------------'
|
||||||
|
source /usr/local/lib/bashio-standalone.sh
|
||||||
cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio
|
cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio
|
||||||
grep -rlZ "^#!.*bashio" /etc |
|
grep -rlZ "^#!.*bashio" /etc |
|
||||||
while IFS= read -r -d '' f; do
|
while IFS= read -r -d '' f; do
|
||||||
|
|||||||
@@ -64,20 +64,7 @@ if ! command -v bashio::addon.version >/dev/null 2>&1; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try regular bashio, fallback to standalone if unavailable or fails
|
bashio::addon.version
|
||||||
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() {
|
validate_shebang() {
|
||||||
@@ -146,7 +133,7 @@ fi
|
|||||||
sed -i "1s|^.*|#!$shebang|" "$0"
|
sed -i "1s|^.*|#!$shebang|" "$0"
|
||||||
|
|
||||||
if ! command -v bashio::addon.version >/dev/null 2>&1; then
|
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
|
if [ -f "$f" ]; then
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "$f"
|
. "$f"
|
||||||
|
|||||||
@@ -83,21 +83,7 @@ if ! command -v bashio::addon.version >/dev/null 2>&1; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try regular bashio, fallback to standalone if unavailable or fails
|
bashio::addon.version
|
||||||
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() {
|
validate_shebang() {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
## 2026.02.25-2 (25-02-2026)
|
|
||||||
- Minor bugs fixed
|
|
||||||
## 2026.02.25 (25-02-2026)
|
## 2026.02.25 (25-02-2026)
|
||||||
- Fix FLAC for birdweather
|
- Fix FLAC for birdweather
|
||||||
- Implement max species to save disk space
|
- Implement max species to save disk space
|
||||||
|
|||||||
@@ -118,5 +118,5 @@ tmpfs: true
|
|||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/battybirdnet-pi
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/battybirdnet-pi
|
||||||
usb: true
|
usb: true
|
||||||
version: "2026.02.25-2"
|
version: 2026.02.25
|
||||||
video: true
|
video: true
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
## 2026.02.25 (25-02-2026)
|
|
||||||
- Minor bugs fixed
|
|
||||||
## 2026.02.01 (01-02-2026)
|
## 2026.02.01 (01-02-2026)
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
## 2026.01.21 (21-01-2026)
|
## 2026.01.21 (21-01-2026)
|
||||||
|
|||||||
@@ -116,5 +116,5 @@ tmpfs: true
|
|||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
|
||||||
usb: true
|
usb: true
|
||||||
version: 2026.02.25
|
version: 2026.02.01
|
||||||
video: true
|
video: true
|
||||||
|
|||||||
@@ -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)
|
## 2.22.1 (2026-02-21)
|
||||||
- Update to latest version from SignalK/signalk-server (changelog : https://github.com/SignalK/signalk-server/releases)
|
- Update to latest version from SignalK/signalk-server (changelog : https://github.com/SignalK/signalk-server/releases)
|
||||||
|
|||||||
@@ -57,5 +57,5 @@ uart: true
|
|||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons
|
url: https://github.com/alexbelgium/hassio-addons
|
||||||
usb: true
|
usb: true
|
||||||
version: "2.22.1-1"
|
version: "2.22.1"
|
||||||
webui: http://[HOST]:[PORT:3000]
|
webui: http://[HOST]:[PORT:3000]
|
||||||
|
|||||||
@@ -16,24 +16,8 @@ chown -R "$USER:$USER" /config
|
|||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
echo "... setting permissions for node user"
|
echo "... setting permissions for node user"
|
||||||
if id "$USER" &>/dev/null; then
|
usermod -o -u 0 node
|
||||||
current_uid="$(id -u "$USER")"
|
groupmod -o -g 0 node
|
||||||
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
|
# Ensure 600 for SSL files
|
||||||
echo "... specifying security files permissions"
|
echo "... specifying security files permissions"
|
||||||
|
|||||||
@@ -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)
|
## 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)
|
- 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
|
slug: sonarr_nas
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/sonarr
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/sonarr
|
||||||
version: "4.0.16.2946-3"
|
version: "4.0.16.2946-2"
|
||||||
|
|||||||
@@ -25,11 +25,3 @@ fi
|
|||||||
if [ -d /config/addons_config ]; then
|
if [ -d /config/addons_config ]; then
|
||||||
rm -rf /config/addons_config
|
rm -rf /config/addons_config
|
||||||
fi
|
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,5 +1,3 @@
|
|||||||
## 2.5-dev-2 (25-02-2026)
|
|
||||||
- Minor bugs fixed
|
|
||||||
|
|
||||||
## 2.5-dev (2026-01-21)
|
## 2.5-dev (2026-01-21)
|
||||||
- Update to latest version from wger/server
|
- Update to latest version from wger/server
|
||||||
|
|||||||
@@ -67,10 +67,6 @@ ENV PACKAGES="sudo nginx"
|
|||||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
|
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
|
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 #
|
# 4 Entrypoint #
|
||||||
################
|
################
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ schema:
|
|||||||
slug: wger
|
slug: wger
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons
|
url: https://github.com/alexbelgium/hassio-addons
|
||||||
version: "2.5-dev-2"
|
version: "2.5-dev"
|
||||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
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"
|
echo "... create directories"
|
||||||
mkdir -p /data/static
|
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
|
if [ -n "$(ls -A /home/wger/static 2> /dev/null)" ]; then
|
||||||
cp -rnf /home/wger/static/* /data/static/
|
cp -rnf /home/wger/static/* /data/static/
|
||||||
fi
|
fi
|
||||||
rm -r /home/wger/static
|
rm -r /home/wger/static
|
||||||
fi
|
fi
|
||||||
ln -sf /data/static /home/wger
|
ln -s /data/static /home/wger
|
||||||
|
|
||||||
mkdir -p /data/media
|
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
|
if [ -n "$(ls -A /home/wger/media 2> /dev/null)" ]; then
|
||||||
cp -rnf /home/wger/media/* /data/media/
|
cp -rnf /home/wger/media/* /data/media/
|
||||||
fi
|
fi
|
||||||
rm -r /home/wger/media
|
rm -r /home/wger/media
|
||||||
fi
|
fi
|
||||||
ln -sf /data/media /home/wger
|
ln -s /data/media /home/wger
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
# Align permissions #
|
# Align permissions #
|
||||||
|
|||||||
Reference in New Issue
Block a user