mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-28 17:00:33 +02:00
Fix environment variables in cron
https://github.com/alexbelgium/hassio-addons/issues/2682
This commit is contained in:
@@ -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")"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user