mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 21:09:13 +02:00
Merge branch 'master' of https://github.com/alexbelgium/hassio-addons
This commit is contained in:
13
.templates/01-custom_script.sh
Normal file
13
.templates/01-custom_script.sh
Normal 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
|
||||||
|
|
||||||
@@ -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
|
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
|
||||||
|
|
||||||
# Modules
|
# 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
|
# 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 \
|
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 \
|
||||||
|
|||||||
@@ -103,6 +103,6 @@
|
|||||||
"slug": "nextcloud_ocr",
|
"slug": "nextcloud_ocr",
|
||||||
"uart": true,
|
"uart": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
"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]"
|
"webui": "https://[HOST]:[PORT:443]"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,6 +86,6 @@
|
|||||||
},
|
},
|
||||||
"slug": "paperless_ng",
|
"slug": "paperless_ng",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.9.2-10",
|
"version": "1.9.2-11",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8000]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8000]"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 "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
|
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 #
|
# Staring redis #
|
||||||
#################
|
#################
|
||||||
|
|||||||
@@ -115,5 +115,5 @@
|
|||||||
},
|
},
|
||||||
"slug": "qbittorrent",
|
"slug": "qbittorrent",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "4.4.5-r3-ls229"
|
"version": "4.4.5-r3-ls229-2"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user