From 37b3f322e9cac1d095277cf81c9badaaa5c3f86d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Nov 2022 17:17:42 +0100 Subject: [PATCH 1/7] Update config.json --- qbittorrent/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbittorrent/config.json b/qbittorrent/config.json index 91cbc74a8..264542f75 100644 --- a/qbittorrent/config.json +++ b/qbittorrent/config.json @@ -115,5 +115,5 @@ }, "slug": "qbittorrent", "url": "https://github.com/alexbelgium/hassio-addons", - "version": "4.4.5-r3-ls229" + "version": "4.4.5-r3-ls229-2" } From c463ea2de784bf361ebd9718de13fee06c18da0d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Nov 2022 18:39:56 +0100 Subject: [PATCH 2/7] Allow superuser in new logic https://github.com/alexbelgium/hassio-addons/issues/549 --- paperless_ngx/rootfs/etc/cont-init.d/99-run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh index 6ce028e4c..02061dea2 100644 --- a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh @@ -14,6 +14,9 @@ if bashio::config.has_value "TZ"; then export PAPERLESS_TIME_ZONE=$(bashio::conf if bashio::config.has_value "OCRLANG"; then export PAPERLESS_OCR_LANGUAGES=$(bashio::config "OCRLANG"); fi if bashio::config.has_value "PAPERLESS_OCR_MODE"; then export PAPERLESS_OCR_MODE=$(bashio::config "PAPERLESS_OCR_MODE"); fi +export PAPERLESS_ADMIN_PASSWORD="admin" +export PAPERLESS_ADMIN_USER="admin" + ################# # Staring redis # ################# From aef6e6b1c2442d7b8c95209bb4a2c9867e9a6272 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Nov 2022 18:50:00 +0100 Subject: [PATCH 3/7] https://github.com/alexbelgium/hassio-addons/issues/549 --- paperless_ngx/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperless_ngx/config.json b/paperless_ngx/config.json index c2a3b6258..06e83fe55 100644 --- a/paperless_ngx/config.json +++ b/paperless_ngx/config.json @@ -86,6 +86,6 @@ }, "slug": "paperless_ng", "url": "https://github.com/alexbelgium/hassio-addons", - "version": "1.9.2-10", + "version": "1.9.2-11", "webui": "[PROTO:ssl]://[HOST]:[PORT:8000]" } From 58d6a795bd1e5596de26f9fc37dd9080b258f174 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Nov 2022 22:31:20 +0100 Subject: [PATCH 4/7] Create 01-custom_script.sh --- .templates/01-custom_script.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .templates/01-custom_script.sh diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh new file mode 100644 index 000000000..cb9ea5817 --- /dev/null +++ b/.templates/01-custom_script.sh @@ -0,0 +1,13 @@ +#!/usr/bin/with-contenv bashio +# shellcheck shell=bash + +slug="${HOSTNAME#*-}" +bashio::log.info "Execute if existing custom script /config/${slug}.sh" + +if [ -f /config/${slug}.sh ]; then + chmod +x /config/"${slug}".sh + /./config/"${slug}".sh +else + bashio::log.info "... no script found" +fi + From 1559a91d530f723bf72c1e7014170b3b0eea6cae Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Nov 2022 22:48:23 +0100 Subject: [PATCH 5/7] Update 01-custom_script.sh --- .templates/01-custom_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index cb9ea5817..78bc5f448 100644 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -4,7 +4,7 @@ slug="${HOSTNAME#*-}" bashio::log.info "Execute if existing custom script /config/${slug}.sh" -if [ -f /config/${slug}.sh ]; then +if [ -f /config/"${slug}".sh ]; then chmod +x /config/"${slug}".sh /./config/"${slug}".sh else From f0c12c19040c047d0adcdc41d5409090fdbc6fe4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:03:56 +0100 Subject: [PATCH 6/7] 01-custom_script.sh https://github.com/alexbelgium/hassio-addons/issues/553 --- nextcloud/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud/config.json b/nextcloud/config.json index cf5fd26a8..ae6bcbe58 100644 --- a/nextcloud/config.json +++ b/nextcloud/config.json @@ -103,6 +103,6 @@ "slug": "nextcloud_ocr", "uart": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud", - "version": "25.0.0-9", + "version": "25.0.0-10", "webui": "https://[HOST]:[PORT:443]" } From f66de76dbca1816ee11731ebfae53840edce8473 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:03:58 +0100 Subject: [PATCH 7/7] 01-custom_script.sh https://github.com/alexbelgium/hassio-addons/issues/553 --- nextcloud/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index b7c9f5802..06b683236 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -68,7 +68,7 @@ RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi # Modules -ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" +ARG MODULES="00-banner.sh 01-custom_script.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash) >/dev/null; fi \