diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh new file mode 100644 index 000000000..78bc5f448 --- /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 + 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 \ 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]" } 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]" } 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 # ################# 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" }