mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 11:46:07 +02:00
banner clean
This commit is contained in:
@@ -6,35 +6,35 @@
|
|||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########
|
##########
|
||||||
@@ -87,7 +87,7 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
cd "/data/$BASENAME"
|
cd "/data/$BASENAME"
|
||||||
git pull --rebase &>/dev/null || git reset --hard &>/dev/null
|
git pull --rebase &>/dev/null || git reset --hard &>/dev/null
|
||||||
git pull --rebase &>/dev/null
|
git pull --rebase &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Define the folder addon
|
#Define the folder addon
|
||||||
LOGINFO="... $SLUG : checking slug exists in repo" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
LOGINFO="... $SLUG : checking slug exists in repo" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
@@ -97,47 +97,49 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
LOGINFO="... $SLUG : get current version" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
LOGINFO="... $SLUG : get current version" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
CURRENT=$(jq .upstream config.json) || bashio::log.error "$SLUG addon upstream tag not found in config.json. Exiting."
|
CURRENT=$(jq .upstream config.json) || bashio::log.error "$SLUG addon upstream tag not found in config.json. Exiting."
|
||||||
|
|
||||||
if [ $SOURCE = "dockerhub" ]; then
|
if [ $SOURCE = "dockerhub" ]; then
|
||||||
# Use dockerhub as upstream
|
# Use dockerhub as upstream
|
||||||
DOCKERHUB_REPO=$(echo "${UPSTREAM%%/*}")
|
DOCKERHUB_REPO=$(echo "${UPSTREAM%%/*}")
|
||||||
DOCKERHUB_IMAGE=$(echo $UPSTREAM | cut -d "/" -f2)
|
DOCKERHUB_IMAGE=$(echo $UPSTREAM | cut -d "/" -f2)
|
||||||
LASTVERSION=$(curl -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" | \
|
LASTVERSION=$(
|
||||||
jq '.results | .[] | .name' -r | \
|
curl -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" | \
|
||||||
sed 's/latest//' | \
|
jq '.results | .[] | .name' -r | \
|
||||||
sort -V | \
|
sed 's/latest//' | \
|
||||||
tail -n 1)
|
sort -V | \
|
||||||
|
tail -n 1
|
||||||
|
)
|
||||||
|
|
||||||
else
|
|
||||||
# Use github as upstream
|
|
||||||
#Prepare tag flag
|
|
||||||
if [ ${FULLTAG} = true ]; then
|
|
||||||
LOGINFO="... $SLUG : fulltag is on" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
|
||||||
FULLTAG="--format tag"
|
|
||||||
else
|
else
|
||||||
LOGINFO="... $SLUG : fulltag is off" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
# Use github as upstream
|
||||||
FULLTAG=""
|
#Prepare tag flag
|
||||||
|
if [ ${FULLTAG} = true ]; then
|
||||||
|
LOGINFO="... $SLUG : fulltag is on" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
FULLTAG="--format tag"
|
||||||
|
else
|
||||||
|
LOGINFO="... $SLUG : fulltag is off" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
FULLTAG=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Prepare tag flag
|
||||||
|
if [ ${HAVINGASSET} = true ]; then
|
||||||
|
LOGINFO="... $SLUG : asset_only tag is on" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
HAVINGASSET="--having-asset"
|
||||||
|
else
|
||||||
|
LOGINFO="... $SLUG : asset_only is off" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
HAVINGASSET=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
#If beta flag, select beta version
|
||||||
|
if [ ${BETA} = true ]; then
|
||||||
|
LOGINFO="... $SLUG : beta is on" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
LASTVERSION=$(lastversion --pre "https://github.com/$UPSTREAM" $FULLTAG $HAVINGASSET) || break
|
||||||
|
else
|
||||||
|
LOGINFO="... $SLUG : beta is off" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
LASTVERSION=$(lastversion "https://github.com/$UPSTREAM" $FULLTAG $HAVINGASSET) || break
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Prepare tag flag
|
|
||||||
if [ ${HAVINGASSET} = true ]; then
|
|
||||||
LOGINFO="... $SLUG : asset_only tag is on" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
|
||||||
HAVINGASSET="--having-asset"
|
|
||||||
else
|
|
||||||
LOGINFO="... $SLUG : asset_only is off" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
|
||||||
HAVINGASSET=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
#If beta flag, select beta version
|
|
||||||
if [ ${BETA} = true ]; then
|
|
||||||
LOGINFO="... $SLUG : beta is on" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
|
||||||
LASTVERSION=$(lastversion --pre "https://github.com/$UPSTREAM" $FULLTAG $HAVINGASSET) || break
|
|
||||||
else
|
|
||||||
LOGINFO="... $SLUG : beta is off" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
|
||||||
LASTVERSION=$(lastversion "https://github.com/$UPSTREAM" $FULLTAG $HAVINGASSET) || break
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add brackets
|
# Add brackets
|
||||||
LASTVERSION='"'${LASTVERSION}'"'
|
LASTVERSION='"'${LASTVERSION}'"'
|
||||||
|
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
bashio::log.warning "Minimal (advised) system requirements: 2GB RAM, 1GB disk space, 2vCPU"
|
bashio::log.warning "Minimal (advised) system requirements: 2GB RAM, 1GB disk space, 2vCPU"
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -34,7 +34,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,48 +1,48 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/usr/bin/env bashio
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# Create config #
|
# Create config #
|
||||||
#################
|
#################
|
||||||
mustache-cli /data/options.json /templates/inadyn.mustache > /etc/inadyn.conf
|
mustache-cli /data/options.json /templates/inadyn.mustache >/etc/inadyn.conf
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# Launch App #
|
# Launch App #
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -32,7 +32,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' http://github.com/alexbelgium/hassio-addons'
|
' http://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||||
bashio::log.blue " $(bashio::addon.description)"
|
bashio::log.blue " $(bashio::addon.description)"
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
|
|
||||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||||
bashio::log.magenta ' There is an update available for this add-on!'
|
bashio::log.magenta ' There is an update available for this add-on!'
|
||||||
bashio::log.magenta \
|
bashio::log.magenta \
|
||||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||||
else
|
else
|
||||||
bashio::log.green ' You are running the latest version of this add-on.'
|
bashio::log.green ' You are running the latest version of this add-on.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||||
|
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Base Images
|
|
||||||
# Displays a simple add-on banner on startup
|
# Displays a simple add-on banner on startup
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
if bashio::supervisor.ping; then
|
if bashio::supervisor.ping; then
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
@@ -31,7 +31,7 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' Please, share the above information when looking for help'
|
' Please, share the above information when looking for help'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
' or support in, e.g., GitHub, forums'
|
||||||
bashio::log.green \
|
bashio::log.green \
|
||||||
' https://github.com/alexbelgium/hassio-addons'
|
' https://github.com/alexbelgium/hassio-addons'
|
||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
|
|||||||
Reference in New Issue
Block a user