This commit is contained in:
Richard Sperry 2025-04-16 22:40:40 -07:00
parent d3f4156cbe
commit 6c91d6d9d2
2 changed files with 5 additions and 1 deletions

View file

@ -5,8 +5,11 @@
# Runs the code-server # Runs the code-server
# ============================================================================== # ==============================================================================
bashio::log.info 'Starting code-server...' bashio::log.info 'Starting code-server...'
parent_dir=$(dirname "$(readlink -f "$0")"
echo "$parent_dir"
)
# shellcheck source=../paths.sh # shellcheck source=../paths.sh
source "/etc/s6-overlay/s6-rc.d/paths.sh" source "$parent_dir/paths.sh"
# Export env variables for the Home Assistant extension # Export env variables for the Home Assistant extension
export HASS_SERVER="http://supervisor/core" export HASS_SERVER="http://supervisor/core"
export HASS_TOKEN="${SUPERVISOR_TOKEN:-}" export HASS_TOKEN="${SUPERVISOR_TOKEN:-}"

View file

@ -7,6 +7,7 @@
bashio::log.info "Initalizing code-server configs" bashio::log.info "Initalizing code-server configs"
parent_dir=$(dirname "$(readlink -f "$0")") parent_dir=$(dirname "$(readlink -f "$0")")
echo "$parent_dir"
# shellcheck source=../paths.sh # shellcheck source=../paths.sh
source "$parent_dir/paths.sh" source "$parent_dir/paths.sh"
# List of previous config hashes, to allow upgrade "default" configs. # List of previous config hashes, to allow upgrade "default" configs.