Skip to content

Commit

Permalink
🚑 Reverses Systeminfo in crash message
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Aug 19, 2018
1 parent 710ea48 commit 1902ff1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions base/rootfs/etc/cont-finish.d/99-message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,8 @@
# Community Hass.io Add-ons: Base Images
# Displays an message right before terminating in case something went wrong
# ==============================================================================
# shellcheck source=base/rootfs/usr/lib/hassio-addons/base.sh
source /usr/lib/hassio-addons/base.sh

declare HASSIO_TOKEN

if [[ "${S6_STAGE2_EXITED}" -ne 0 ]]; then

if hass.api.supervisor.ping; then
# shellcheck disable=SC2034
HASSIO_TOKEN=$(</var/run/s6/container_environment/HASSIO_TOKEN)
echo '-----------------------------------------------------------'
echo -n " v$(hass.addon.version)" && \
echo -n " / $(hass.api.supervisor.info.arch)" && \
echo -n " / $(hass.api.host.info.operating_system)" && \
echo -n " / HA $(hass.api.homeassistant.info.version)" && \
echo -n " / SU $(hass.api.supervisor.info.version)"
echo " / $(hass.api.supervisor.info.channel)"
fi

echo '-----------------------------------------------------------'
echo ' Oops! Something went wrong.'
echo ' '
Expand Down

0 comments on commit 1902ff1

Please sign in to comment.