mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Activate github builds
This commit is contained in:
@@ -49,7 +49,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -61,8 +61,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -49,7 +49,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq curl iproute2"
|
ENV PACKAGES="jq curl iproute2"
|
||||||
@@ -61,8 +61,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -48,7 +48,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ARG PACKAGES=""
|
ARG PACKAGES=""
|
||||||
@@ -60,8 +60,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
# Corrects permissions for s6 v3
|
# Corrects permissions for s6 v3
|
||||||
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -86,8 +86,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -56,7 +56,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="libmariadb-dev-compat \
|
ENV PACKAGES="libmariadb-dev-compat \
|
||||||
@@ -71,8 +71,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -76,7 +76,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -91,8 +91,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -80,7 +80,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -92,8 +92,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -79,7 +79,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -91,8 +91,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
# Install sqlite3 & set defaults
|
# Install sqlite3 & set defaults
|
||||||
RUN if ! command -v sqlite3 >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends sqlite3 || apk add --no-cache sqlite3) >/dev/null; fi \
|
RUN if ! command -v sqlite3 >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends sqlite3 || apk add --no-cache sqlite3) >/dev/null; fi \
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -48,7 +48,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -63,8 +63,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -74,7 +74,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq"
|
ENV PACKAGES="jq"
|
||||||
@@ -86,8 +86,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -61,7 +61,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -73,8 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -73,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="nginx"
|
ENV PACKAGES="nginx"
|
||||||
@@ -85,8 +85,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
#[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
#[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -48,7 +48,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "use Enedis Gateway API to send data in your MQTT Broker (latest channel)",
|
"description": "use Enedis Gateway API to send data in your MQTT Broker (latest channel)",
|
||||||
|
"image": "ghcr.io/alexbelgium/enedisgateway2mqtt-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw"
|
"config:rw"
|
||||||
],
|
],
|
||||||
@@ -28,4 +29,4 @@
|
|||||||
"slug": "enedisgateway2mqtt",
|
"slug": "enedisgateway2mqtt",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "0.7.7-3"
|
"version": "0.7.7-3"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -48,7 +48,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "use Enedis Gateway API to send data in your MQTT Broker (latest-dev channel)",
|
"description": "use Enedis Gateway API to send data in your MQTT Broker (latest-dev channel)",
|
||||||
|
"image": "ghcr.io/alexbelgium/enedisgateway2mqtt_dev-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw"
|
"config:rw"
|
||||||
],
|
],
|
||||||
@@ -24,4 +25,4 @@
|
|||||||
"slug": "enedisgateway2mqtt_dev",
|
"slug": "enedisgateway2mqtt_dev",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "0.8.2-dev"
|
"version": "0.8.2-dev"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -50,7 +50,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -48,7 +48,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="bind-tools \
|
ENV PACKAGES="bind-tools \
|
||||||
@@ -61,8 +61,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
"PGID": "0",
|
"PGID": "0",
|
||||||
"PUID": "0"
|
"PUID": "0"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/filebrowser-{arch}",
|
||||||
"ingress": true,
|
"ingress": true,
|
||||||
"ingress_stream": true,
|
"ingress_stream": true,
|
||||||
"map": [
|
"map": [
|
||||||
@@ -88,4 +89,4 @@
|
|||||||
"slug": "filebrowser",
|
"slug": "filebrowser",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "2.23.0"
|
"version": "2.23.0"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -65,7 +65,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="cron mariadb-client"
|
ENV PACKAGES="cron mariadb-client"
|
||||||
@@ -77,8 +77,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"environment": {
|
"environment": {
|
||||||
"TRUSTED_PROXIES": "**"
|
"TRUSTED_PROXIES": "**"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/fireflyiii-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"share:rw",
|
"share:rw",
|
||||||
@@ -48,4 +49,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "5.7.15-2",
|
"version": "5.7.15-2",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -55,7 +55,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="cron"
|
ENV PACKAGES="cron"
|
||||||
@@ -67,8 +67,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"environment": {
|
"environment": {
|
||||||
"TRUSTED_PROXIES": "**"
|
"TRUSTED_PROXIES": "**"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/fireflyiii_data_importer-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"share:rw",
|
"share:rw",
|
||||||
@@ -41,4 +42,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "version-0.9.17",
|
"version": "version-0.9.17",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -50,7 +50,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="cron"
|
ENV PACKAGES="cron"
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -49,7 +49,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -61,8 +61,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "Proxy server to bypass Cloudflare protection",
|
"description": "Proxy server to bypass Cloudflare protection",
|
||||||
|
"image": "ghcr.io/alexbelgium/flaresolverr-{arch}",
|
||||||
"name": "FlareSolverr",
|
"name": "FlareSolverr",
|
||||||
"ports": {
|
"ports": {
|
||||||
"8191/tcp": 8191
|
"8191/tcp": 8191
|
||||||
@@ -17,4 +18,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "2.2.10",
|
"version": "2.2.10",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8191]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8191]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -83,7 +83,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -97,8 +97,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"FG_PLUGINS": "",
|
"FG_PLUGINS": "",
|
||||||
"FG_WEBUI_PASSWD": "homeassistant123"
|
"FG_WEBUI_PASSWD": "homeassistant123"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/flexget-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"share:rw",
|
"share:rw",
|
||||||
@@ -39,4 +40,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "3.5.5",
|
"version": "3.5.5",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:5050]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:5050]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -50,7 +50,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "fetch GRDF data and publish data to a mqtt broker",
|
"description": "fetch GRDF data and publish data to a mqtt broker",
|
||||||
|
"image": "ghcr.io/alexbelgium/gazpar2mqtt-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"share:rw"
|
"share:rw"
|
||||||
@@ -29,4 +30,4 @@
|
|||||||
"slug": "gazpar2mqtt",
|
"slug": "gazpar2mqtt",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "0.8.2-2"
|
"version": "0.8.2-2"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -50,7 +50,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
EXPOSE 22 3000
|
EXPOSE 22 3000
|
||||||
|
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -73,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -88,8 +88,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "Fast, Simple, and Flexible, file-based Web-platform",
|
"description": "Fast, Simple, and Flexible, file-based Web-platform",
|
||||||
"devices": [],
|
"image": "ghcr.io/alexbelgium/grav-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"share:rw",
|
"share:rw",
|
||||||
@@ -24,7 +24,6 @@
|
|||||||
"ports_description": {
|
"ports_description": {
|
||||||
"80/tcp": "web interface"
|
"80/tcp": "web interface"
|
||||||
},
|
},
|
||||||
"privileged": [],
|
|
||||||
"schema": {
|
"schema": {
|
||||||
"PGID": "int",
|
"PGID": "int",
|
||||||
"PUID": "int",
|
"PUID": "int",
|
||||||
@@ -34,4 +33,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.7.37.1",
|
"version": "1.7.37.1",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -75,7 +75,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -87,8 +87,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -51,7 +51,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="curl \
|
ENV PACKAGES="curl \
|
||||||
@@ -66,8 +66,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
# Install mustache
|
# Install mustache
|
||||||
# spellcheck disable=SC2015
|
# spellcheck disable=SC2015
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "Inadyn is a small and simple Dynamic DNS, DDNS, client with HTTPS support. A large number of dynamic dns providers are supported (https://github.com/troglobit/inadyn#supported-providers). For those that are not, you can use a custom provider as per this project's documentation (https://github.com/nalipaz/hassio-addons/blob/master/README.md)",
|
"description": "Inadyn is a small and simple Dynamic DNS, DDNS, client with HTTPS support. A large number of dynamic dns providers are supported (https://github.com/troglobit/inadyn#supported-providers). For those that are not, you can use a custom provider as per this project's documentation (https://github.com/nalipaz/hassio-addons/blob/master/README.md)",
|
||||||
"host_network": true,
|
"host_network": true,
|
||||||
|
"image": "ghcr.io/alexbelgium/inadyn-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"ssl"
|
"ssl"
|
||||||
],
|
],
|
||||||
@@ -55,4 +56,4 @@
|
|||||||
"slug": "inadyn",
|
"slug": "inadyn",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "2.10.0"
|
"version": "2.10.0"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -76,7 +76,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="curl"
|
ENV PACKAGES="curl"
|
||||||
@@ -88,8 +88,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"PGID": "0",
|
"PGID": "0",
|
||||||
"PUID": "0"
|
"PUID": "0"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/jackett_nas-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
@@ -45,4 +46,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/jackett",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/jackett",
|
||||||
"version": "0.20.2288",
|
"version": "0.20.2288",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:9117]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:9117]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
#[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
#[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -74,7 +74,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="nginx intel-media-va-driver-non-free"
|
ENV PACKAGES="nginx intel-media-va-driver-non-free"
|
||||||
@@ -86,8 +86,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
],
|
],
|
||||||
"host_dbus": true,
|
"host_dbus": true,
|
||||||
"host_network": true,
|
"host_network": true,
|
||||||
|
"image": "ghcr.io/alexbelgium/jellyfin-{arch}",
|
||||||
"ingress": true,
|
"ingress": true,
|
||||||
"ingress_port": 0,
|
"ingress_port": 0,
|
||||||
"ingress_stream": true,
|
"ingress_stream": true,
|
||||||
@@ -106,4 +107,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "10.8.7-1-ls189",
|
"version": "10.8.7-1-ls189",
|
||||||
"video": true
|
"video": true
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -62,8 +62,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
ARG MODULES="00-banner.sh"
|
ARG MODULES="00-banner.sh"
|
||||||
@@ -74,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "An open source command line RatioMaster with WebUI",
|
"description": "An open source command line RatioMaster with WebUI",
|
||||||
"hassio_api": true,
|
"hassio_api": true,
|
||||||
|
"image": "ghcr.io/alexbelgium/joal-{arch}",
|
||||||
"ingress": true,
|
"ingress": true,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw"
|
"config:rw"
|
||||||
@@ -35,4 +36,4 @@
|
|||||||
"slug": "joal",
|
"slug": "joal",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "2.1.32"
|
"version": "2.1.32"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -55,7 +55,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -68,8 +68,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"environment": {
|
"environment": {
|
||||||
"APP_PORT": "22300"
|
"APP_PORT": "22300"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/joplin-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"share:rw"
|
"share:rw"
|
||||||
@@ -49,4 +50,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "2.9.7-3",
|
"version": "2.9.7-3",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:22300]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:22300]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -73,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq \
|
ENV PACKAGES="jq \
|
||||||
@@ -88,8 +88,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
"PGID": "0",
|
"PGID": "0",
|
||||||
"PUID": "0"
|
"PUID": "0"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/lidarr_nas-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
@@ -83,4 +84,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons/blob/master/lidarr/Readme.md",
|
"url": "https://github.com/alexbelgium/hassio-addons/blob/master/lidarr/Readme.md",
|
||||||
"version": "1.0.2.2592-ls103",
|
"version": "1.0.2.2592-ls103",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8686]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8686]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -52,7 +52,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq curl bash"
|
ENV PACKAGES="jq curl bash"
|
||||||
@@ -64,8 +64,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"APP_PORT": "9925",
|
"APP_PORT": "9925",
|
||||||
"DB_ENGINE": "sqlite"
|
"DB_ENGINE": "sqlite"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/mealie-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"share:rw",
|
"share:rw",
|
||||||
@@ -41,4 +42,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.0.0.1-2",
|
"version": "1.0.0.1-2",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:9925]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:9925]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -73,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -85,8 +85,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
"PGID": "0",
|
"PGID": "0",
|
||||||
"PUID": "0"
|
"PUID": "0"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/mylar3-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
@@ -79,4 +80,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "0.6.9-bugfix",
|
"version": "0.6.9-bugfix",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8090]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:8090]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -76,7 +76,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="curl jq wget"
|
ENV PACKAGES="curl jq wget"
|
||||||
@@ -88,8 +88,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
VOLUME ["/share", "/ssl", "/data", "/media"]
|
VOLUME ["/share", "/ssl", "/data", "/media"]
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
"/dev/nvme2"
|
"/dev/nvme2"
|
||||||
],
|
],
|
||||||
"hassio_api": true,
|
"hassio_api": true,
|
||||||
|
"image": "ghcr.io/alexbelgium/nextcloud_ocr-{arch}",
|
||||||
"ingress_port": 0,
|
"ingress_port": 0,
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
@@ -105,4 +106,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
||||||
"version": "25.0.0-10",
|
"version": "25.0.0-10",
|
||||||
"webui": "https://[HOST]:[PORT:443]"
|
"webui": "https://[HOST]:[PORT:443]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -73,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="nginx"
|
ENV PACKAGES="nginx"
|
||||||
@@ -85,8 +85,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
"PGID": "0",
|
"PGID": "0",
|
||||||
"PUID": "0"
|
"PUID": "0"
|
||||||
},
|
},
|
||||||
|
"image": "ghcr.io/alexbelgium/nzbget-{arch}",
|
||||||
"ingress": true,
|
"ingress": true,
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
@@ -80,4 +81,4 @@
|
|||||||
"slug": "nzbget",
|
"slug": "nzbget",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "v21.1-ls132"
|
"version": "v21.1-ls132"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -56,7 +56,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -68,8 +68,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -57,7 +57,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -69,8 +69,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -73,7 +73,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="jq curl"
|
ENV PACKAGES="jq curl"
|
||||||
@@ -85,8 +85,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "Self-hosted Plex Request and user management system",
|
"description": "Self-hosted Plex Request and user management system",
|
||||||
|
"image": "ghcr.io/alexbelgium/ombi-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw"
|
"config:rw"
|
||||||
@@ -29,4 +30,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/ombi",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/ombi",
|
||||||
"version": "4.22.5-bugfix",
|
"version": "4.22.5-bugfix",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:3579]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:3579]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -72,7 +72,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES="curl \
|
ENV PACKAGES="curl \
|
||||||
@@ -85,8 +85,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "An HTPC/Homelab services organizer that is written in PHP",
|
"description": "An HTPC/Homelab services organizer that is written in PHP",
|
||||||
|
"image": "ghcr.io/alexbelgium/organizr-{arch}",
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"ssl"
|
"ssl"
|
||||||
@@ -29,4 +30,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.90-bugfix2",
|
"version": "1.90-bugfix2",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||||
}
|
}
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# If dockerfile failed install manually
|
|
||||||
|
|
||||||
##############################
|
|
||||||
# Automatic modules download #
|
|
||||||
##############################
|
|
||||||
if [ -e "/MODULESFILE" ]; then
|
|
||||||
MODULES=$(</MODULESFILE)
|
|
||||||
MODULES="${MODULES:-00-banner.sh}"
|
|
||||||
echo "Executing modules script : $MODULES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
|
||||||
&& mkdir -p /etc/cont-init.d \
|
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
|
||||||
&& chmod -R 755 /etc/cont-init.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Automatic installer #
|
|
||||||
#######################
|
|
||||||
if [ -e "/ENVFILE" ]; then
|
|
||||||
PACKAGES=$(</ENVFILE)
|
|
||||||
echo "Executing dependency script with custom elements : $PACKAGES"
|
|
||||||
|
|
||||||
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 \
|
|
||||||
&& if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \
|
|
||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
|
||||||
&& chmod 777 /automatic_packages.sh \
|
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
|
||||||
&& rm /automatic_packages.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|
||||||
for scripts in $MODULES; do
|
|
||||||
echo "$scripts : executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
|
|
||||||
chmod a+x /etc/cont-init.d/"$scripts"
|
|
||||||
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
|
|
||||||
rm /etc/cont-init.d/"$scripts"
|
|
||||||
done | tac
|
|
||||||
fi
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Correct permissions #
|
|
||||||
#######################
|
|
||||||
[ -d /etc/services.d ] && chmod -R 777 /etc/services.d
|
|
||||||
[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d
|
|
||||||
@@ -74,7 +74,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
&& apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \
|
||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
&& for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \
|
||||||
&& chmod -R 755 /etc/cont-init.d || printf '%s\n' "${MODULES}" >/MODULESFILE
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
|
|
||||||
# Manual apps
|
# Manual apps
|
||||||
ENV PACKAGES=""
|
ENV PACKAGES=""
|
||||||
@@ -86,8 +86,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
|
||||||
&& chmod 777 /automatic_packages.sh \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
|
&& rm /automatic_packages.sh
|
||||||
if [ -f /etc/s6-overlay/s6-rc.d/00-legacy/up ]; then chmod +x /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1i /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/00-legacy/up;fi)
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 4 Entrypoint #
|
# 4 Entrypoint #
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"description": "Request management and media discovery tool built to work with your existing Plex ecosystem",
|
"description": "Request management and media discovery tool built to work with your existing Plex ecosystem",
|
||||||
"devices": [],
|
"devices": [],
|
||||||
"environment": {},
|
"environment": {},
|
||||||
|
"image": "ghcr.io/alexbelgium/overseerr-{arch}",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw"
|
"config:rw"
|
||||||
@@ -35,4 +36,4 @@
|
|||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/overseerr",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/overseerr",
|
||||||
"version": "1.30.1-2",
|
"version": "1.30.1-2",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:5055]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:5055]"
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user