This commit is contained in:
Richard Sperry 2025-04-16 22:48:54 -07:00
parent b30873fae2
commit 1abe78e0d8
2 changed files with 4 additions and 2 deletions

View file

@ -7,8 +7,9 @@
bashio::log.info 'Starting code-server...' bashio::log.info 'Starting code-server...'
caller_dir=$(dirname "$(readlink -f "$0")") caller_dir=$(dirname "$(readlink -f "$0")")
parent_path=../$caller_dir
# shellcheck source=../paths.sh # shellcheck source=../paths.sh
source "../$caller_dir/paths.sh" source "$parent_path/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"

View file

@ -7,8 +7,9 @@
bashio::log.info "Initalizing code-server configs" bashio::log.info "Initalizing code-server configs"
caller_dir=$(dirname "$(readlink -f "$0")") caller_dir=$(dirname "$(readlink -f "$0")")
parent_path=../../$caller_dir
# shellcheck source=../paths.sh # shellcheck source=../paths.sh
source "../$caller_dir/paths.sh" source "$parent_path/paths.sh"
# List of previous config hashes, to allow upgrade "default" configs. # List of previous config hashes, to allow upgrade "default" configs.
readonly CUSTOM_BASH_SCRIPTS_PATH="/data/custom" readonly CUSTOM_BASH_SCRIPTS_PATH="/data/custom"