mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Revise script notice for environment variables usage
Updated script documentation to reflect changes in environment variable handling.
This commit is contained in:
@@ -11,6 +11,8 @@ if [ ! -d /config ] || ! bashio::supervisor.ping 2> /dev/null; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
bashio::log.notice "This script is used to export custom environment variables at start of the addon using the env_vars addon options. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2"
|
||||||
|
|
||||||
# Define slug
|
# Define slug
|
||||||
slug="${HOSTNAME/-/_}"
|
slug="${HOSTNAME/-/_}"
|
||||||
slug="${slug#*_}"
|
slug="${slug#*_}"
|
||||||
@@ -110,8 +112,6 @@ if [[ "$CONFIGSOURCE" == "/config"* ]]; then
|
|||||||
else
|
else
|
||||||
bashio::log.green "If accessing the file with filebrowser it should be mapped to $CONFIGSOURCE"
|
bashio::log.green "If accessing the file with filebrowser it should be mapped to $CONFIGSOURCE"
|
||||||
fi
|
fi
|
||||||
bashio::log.green "---------------------------------------------------------"
|
|
||||||
bashio::log.notice "This script is used to export custom environment variables at start of the addon. Instructions here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon"
|
|
||||||
bashio::log.warning "This methodology is deprecated, please convert your Environment variables to the addon options env_vars. Instructions can be found here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2"
|
bashio::log.warning "This methodology is deprecated, please convert your Environment variables to the addon options env_vars. Instructions can be found here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user