mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
align repo logic
This commit is contained in:
@@ -28,7 +28,7 @@ ENV LANG C.UTF-8
|
||||
ENV APP_ID="spotweb"
|
||||
ENV APP_NAME="Spotweb"
|
||||
ENV APP_DIR="/app"
|
||||
ENV SPOTWEB_RELEASE="1.5.1"
|
||||
ENV BUILD_UPSTREAM="1.5.1"
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
@@ -132,8 +132,8 @@ LABEL \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="${APP_NAME}" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.url="https://github.com/alexbelgium/hassio-addons/${APP_ID}" \
|
||||
org.label-schema.usage="https://github.com/alexbelgium/hassio-addons/tree/master/${APP_ID}/README.md" \
|
||||
org.label-schema.url="https://github.com/woutercoppens/hassio-addons/${APP_ID}" \
|
||||
org.label-schema.usage="https://github.com/woutercoppens/hassio-addons/tree/master/${APP_ID}/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/alexbelgium/hassio-addons/${APP_ID}" \
|
||||
org.label-schema.vcs-url="https://github.com/woutercoppens/hassio-addons/${APP_ID}" \
|
||||
org.label-schema.vendor="Wouter's Community Add-ons for Home Assistant"
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"arch": ["aarch64", "amd64", "armhf", "armv7", "i386"],
|
||||
"arch": ["aarch64", "amd64", "armv7"],
|
||||
"name": "Spotweb by @woutercoppens",
|
||||
"image": "ghcr.io/alexbelgium/spotweb-{arch}",
|
||||
"version": "dev",
|
||||
|
||||
33
spotweb/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh
Normal file
33
spotweb/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
# If dockerfile failed install manually
|
||||
|
||||
##############################
|
||||
# Automatic modules download #
|
||||
##############################
|
||||
if [ -e "/MODULESFILE" ]; then
|
||||
echo "Executing modules script"
|
||||
MODULES=$(</MODULESFILE)
|
||||
MODULES="${MODULES:-00-banner.sh}"
|
||||
|
||||
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 \
|
||||
&& mkdir -p /etc/cont-init.d \
|
||||
&& for scripts in $MODULES; do curl -L -f -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /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
|
||||
echo "Executing script"
|
||||
PACKAGES=$(</ENVFILE)
|
||||
|
||||
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 -L -f -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
|
||||
Reference in New Issue
Block a user