From 54d2ee033cee595d71e8a7fecfbc5388239265b0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 24 Nov 2023 23:01:19 +0100 Subject: [PATCH] Update 01-custom_script.sh --- .templates/01-custom_script.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index 0dd3a05f4..9c08a81e1 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -14,15 +14,18 @@ if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; t fi # New config location CONFIGLOCATION="/config" + CONFIGFILEBROWSER="/config/*-$slug" else # Legacy config location CONFIGLOCATION="/config/addons_autoscripts" + CONFIGFILEBROWSER="/config/addons_autoscripts" mkdir -p /config/addons_autoscripts fi bashio::log.green "Execute $CONFIGLOCATION/${slug}.sh if existing" bashio::log.green "---------------------------------------------------------" -echo "Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation" +bashio::log.green "If accessing the file with filebrowser it should be mapped to $CONFIGFILEBROWSER/${slug}.sh" +bashio::log.green "Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation" # Execute scripts if [ -f "$CONFIGLOCATION/${slug}".sh ]; then