🔥 Removes version checks in order to prevent future problems

This commit is contained in:
Franck Nijhof 2018-05-08 22:02:08 +02:00
parent 26f620418d
commit 88ec9f2a3d
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 0 additions and 51 deletions

View file

@ -32,13 +32,6 @@ RUN \
&& curl -L -s "https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.2/s6-overlay-${S6_ARCH}.tar.gz" \
| tar zxvf - -C / \
\
&& if [ "${BUILD_ARCH}" = "i386" ]; then SEMVER_ARCH="386"; \
elif [ "${BUILD_ARCH}" = "aarch64" ] || [ "${BUILD_ARCH}" = "armhf" ]; then SEMVER_ARCH="arm"; \
else SEMVER_ARCH="${BUILD_ARCH}"; fi \
\
&& curl -L -s "https://github.com/frenck/semver/releases/download/v0.3.0/semver_linux_${SEMVER_ARCH}.tar.gz" \
| tar zxvf - -C /usr/bin/ \
\
&& mkdir -p /etc/fix-attrs.d \
&& mkdir -p /etc/services.d \
\

View file

@ -1,44 +0,0 @@
#!/usr/bin/with-contenv bash
# ==============================================================================
# Community Hass.io Add-ons: Base Images
# Checks version requirements for this add-on
# ==============================================================================
# shellcheck source=base/rootfs/usr/lib/hassio-addons/base.sh
source /usr/lib/hassio-addons/base.sh
declare version
if hass.api.supervisor.ping; then
if [[ ! -z "${SUPERVISOR_VERSION:-}" ]]; then
version=$(hass.api.supervisor.info.version)
hass.log.debug "Current Supervisor version: ${version}"
hass.log.debug "Supervisor version condition: ${SUPERVISOR_VERSION}"
if semver -q "${version}" "${SUPERVISOR_VERSION}"; then
hass.log.info "Supervisor version requirements checks passed."
else
hass.log.fatal "You Supervisor version is: ${version}"
hass.log.fatal "This add-on requires: ${SUPERVISOR_VERSION}"
hass.die 'Please consider upgrading.'
fi
fi
if [[ ! -z "${HOME_ASSISTANT_VERSION:-}" ]]; then
version=$(hass.api.homeassistant.info.version)
hass.log.debug "Current Home Assistant version: ${version}"
hass.log.debug "Home Assistant version condition: ${HOME_ASSISTANT_VERSION}"
if semver -q "${version}" "${HOME_ASSISTANT_VERSION}"; then
hass.log.info "Home Assistant version requirements checks passed."
else
hass.log.fatal "You Home Assistant version is: ${version}"
hass.log.fatal "This add-on requires: ${HOME_ASSISTANT_VERSION}"
hass.die 'Please consider upgrading.'
fi
fi
else
hass.log.warning 'Could not check version requirements!'
hass.log.warning 'Continue startup process... (might fail)'
fi