Fix environment variables in cron

https://github.com/alexbelgium/hassio-addons/issues/2682
This commit is contained in:
Alexandre
2026-05-18 15:38:04 +02:00
committed by GitHub
parent f297c5a62f
commit ee9e516d9e

View File

@@ -4,7 +4,7 @@ set -e
# Source environment variables for cron context
# shellcheck disable=SC1091
if [ -f /etc/environment ]; then set -a; . /etc/environment; set +a; fi
if [ -f /etc/environment ]; then chmod +x /etc/environment; set -a; /./etc/environment; set +a; fi
CONFIGSOURCE="$(bashio::config "CONFIG_LOCATION")"