From 8f1ea1c938380f6abb38e51c8a84b3ddc0c96d26 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 31 Jul 2025 14:39:21 +0200 Subject: [PATCH] replace previous texts --- .templates/01-config_yaml.sh | 4 +--- .templates/01-custom_script.sh | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index 31bdc3cc0..080461be4 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -11,8 +11,6 @@ if [ ! -d /config ] || ! bashio::supervisor.ping 2> /dev/null; then exit 0 fi -bashio::log.notice "This script is used to run custom commands at start of the addon. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon" - # Define slug slug="${HOSTNAME/-/_}" slug="${slug#*_}" @@ -93,7 +91,7 @@ else bashio::log.green "If accessing the file with filebrowser it should be mapped to $CONFIGSOURCE" fi bashio::log.green "---------------------------------------------------------" -bashio::log.green "Wiki here on how to use: https://github.com/alexbelgium/hassio-addons/wiki/Addons-feature:-add-env-variables" +bashio::log.notice "This script is used to run custom commands at start of the addon. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon" echo "" # Check if config file is there, or create one from template diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index 6939d9de0..f6477544a 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -12,8 +12,6 @@ if [ ! -d /config ] || ! bashio::supervisor.ping 2> /dev/null; then exit 0 fi -bashio::log.notice "This script is used to run custom commands at start of the addon. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Running-custom-scripts-in-Addons" - # Define slug slug="${HOSTNAME/-/_}" slug="${slug#*_}" @@ -33,8 +31,8 @@ fi mkdir -p "$CONFIGLOCATION" || true CONFIGSOURCE="$CONFIGLOCATION/$slug.sh" +bashio::log.notice "This script is used to run custom commands at start of the addon. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Running-custom-scripts-in-Addons" bashio::log.green "Execute $CONFIGFILEBROWSER if existing" -bashio::log.green "Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation" # Download template if no script found and exit if [ ! -f "$CONFIGSOURCE" ]; then