mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
modulization
This commit is contained in:
@@ -66,14 +66,14 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE
|
rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
#ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh"
|
ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh"
|
||||||
|
|
||||||
# Automatic modules download
|
# Automatic modules download
|
||||||
#RUN mkdir -p /tmpscripts /scripts /etc/cont-init.d && \
|
RUN mkdir -p /tmpscripts /etc/cont-init.d && \
|
||||||
# for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \
|
for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \
|
||||||
# /bin/cp -rf /tmpscripts/* {/scripts/, /etc/cont-init.d/} && \
|
/bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && \
|
||||||
# chmod -R 777 {/scripts, /etc/cont-init.d} && \
|
chmod -R 755 /etc/cont-init.d && \
|
||||||
# rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE
|
rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
echo "hello"
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|||||||
Reference in New Issue
Block a user