mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-02 18:07:43 +01:00
Update 01-custom_script.sh
This commit is contained in:
@@ -14,15 +14,18 @@ if [ ! -f /config/configuration.yaml ] && [ ! -f /config/configuration.json ]; t
|
|||||||
fi
|
fi
|
||||||
# New config location
|
# New config location
|
||||||
CONFIGLOCATION="/config"
|
CONFIGLOCATION="/config"
|
||||||
|
CONFIGFILEBROWSER="/config/*-$slug"
|
||||||
else
|
else
|
||||||
# Legacy config location
|
# Legacy config location
|
||||||
CONFIGLOCATION="/config/addons_autoscripts"
|
CONFIGLOCATION="/config/addons_autoscripts"
|
||||||
|
CONFIGFILEBROWSER="/config/addons_autoscripts"
|
||||||
mkdir -p /config/addons_autoscripts
|
mkdir -p /config/addons_autoscripts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.green "Execute $CONFIGLOCATION/${slug}.sh if existing"
|
bashio::log.green "Execute $CONFIGLOCATION/${slug}.sh if existing"
|
||||||
bashio::log.green "---------------------------------------------------------"
|
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
|
# Execute scripts
|
||||||
if [ -f "$CONFIGLOCATION/${slug}".sh ]; then
|
if [ -f "$CONFIGLOCATION/${slug}".sh ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user