This commit is contained in:
Alexandre
2022-11-15 10:04:20 +01:00
6 changed files with 20 additions and 4 deletions

View File

@@ -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

View File

@@ -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 \

View File

@@ -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]"
}

View File

@@ -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]"
}

View File

@@ -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 #
#################

View File

@@ -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"
}