mirror of
https://github.com/hassio-addons/addon-debian-base.git
synced 2025-05-03 18:51:23 +00:00
18 lines
No EOL
849 B
Bash
18 lines
No EOL
849 B
Bash
#!/usr/bin/with-contenv bash
|
|
# ==============================================================================
|
|
# Community Hass.io Add-ons: Base Images
|
|
# Displays a notice when there is an update available for this add-on
|
|
# ==============================================================================
|
|
# shellcheck source=base/rootfs/usr/lib/hassio-addons/base.sh
|
|
source /usr/lib/hassio-addons/base.sh
|
|
|
|
if hass.api.supervisor.ping; then
|
|
if hass.addon.update_available; then
|
|
hass.log.warning 'There is an update available for this add-on!'
|
|
hass.log.notice "Current installed version: $(hass.addon.version)"
|
|
hass.log.notice "Latest version: $(hass.addon.last_version)"
|
|
hass.log.info 'Please consider updating this add-on.'
|
|
else
|
|
hass.log.info 'You are running the latest version of this add-on'
|
|
fi
|
|
fi |