Compare commits

...

9 Commits

Author SHA1 Message Date
github-actions
cf8dd08ef3 GitHub bot: changelog [nobuild] 2026-04-03 07:20:01 +00:00
Alexandre
ba4cb44c00 Update config.yaml 2026-04-03 09:17:47 +02:00
Alexandre
048d38ca8f Update ha_entrypoint.sh 2026-04-03 09:17:44 +02:00
Alexandre
20b86e73fe Update ha_entrypoint.sh 2026-04-03 09:17:19 +02:00
Alexandre
64a31b3d29 Add check for existing bashio before copy
Check if bashio is already installed before copying.
2026-04-03 09:12:58 +02:00
github-actions
3c4d8118c3 GitHub bot: changelog [nobuild] 2026-04-03 07:04:58 +00:00
Alexandre
79a77fbb28 Update config.yaml 2026-04-03 09:02:43 +02:00
Alexandre
2f4cf45fe8 Update shebang and execution method in init scripts
Modify shebang insertion and change script execution method.
2026-04-03 09:02:31 +02:00
Alexandre
4490320c53 Modify entrypoint to improve script execution
Updated init script execution to use exec and added bashio shebang.
2026-04-03 09:01:09 +02:00
4 changed files with 11 additions and 11 deletions

View File

@@ -16,7 +16,9 @@ if ! bashio::supervisor.ping 2>/dev/null; then
bashio::log.blue "Version : ${BUILD_VERSION:-1.0}"
bashio::log.blue "Config source: ENV + /data/options.json"
bashio::log.blue '-----------------------------------------------------------'
cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio
if [ ! -f /usr/bin/bashio ]; then
cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio
fi
grep -rl "^#!.*bashio" /etc |
while IFS= read -r f; do
grep -qF "source /usr/local/lib/bashio-standalone.sh" "$f" && continue

View File

@@ -1,3 +1,7 @@
## 3.2.0-10 (03-04-2026)
- Minor bugs fixed
## 3.2.0-9 (03-04-2026)
- Minor bugs fixed
## 3.2.0-8 (02-04-2026)
- Minor bugs fixed
## 3.2.0-7 (02-04-2026)

View File

@@ -89,5 +89,5 @@ schema:
TZ: str?
slug: maintainerr
url: https://github.com/alexbelgium/hassio-addons/tree/master/maintainerr
version: "3.2.0-8"
version: "3.2.0-10"
webui: "[PROTO:ssl]://[HOST]:[PORT:6246]"

View File

@@ -7,19 +7,13 @@ set -e
# Runs cont-init.d scripts then drops privileges and starts the app.
###############################################################################
# ─── Source standalone bashio if available ───────────────────────────────────
if [ -f /usr/local/lib/bashio-standalone.sh ]; then
# shellcheck disable=SC1091
source /usr/local/lib/bashio-standalone.sh
fi
# ─── Run cont-init.d scripts ─────────────────────────────────────────────────
if [ -d /etc/cont-init.d ]; then
for script in /etc/cont-init.d/*.sh; do
[ -f "$script" ] || continue
sed -i '1s|.*|#!/usr/bin/env bashio|' "$script"
echo "[Maintainerr] Running init script: $script"
# Use bash directly (no S6 with-contenv available)
bash "$script"
bashio "$script"
done
fi
@@ -58,5 +52,5 @@ export DATA_DIR
# ─── Start Maintainerr as unprivileged node user ─────────────────────────────
echo "[Maintainerr] Starting application on port ${UI_PORT:-6246}..."
exec gosu node /opt/app/start.sh
exec gosu node /opt/app/start.sh &
exec nginx