This commit is contained in:
Richard Sperry 2025-04-16 22:53:46 -07:00
parent bb37cb1323
commit b46efae311
3 changed files with 5 additions and 6 deletions

View file

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

@ -22,9 +22,10 @@ readonly -a PREVIOUS_DEFAULT_CONFIG_HASHES=(
dbe905f0935b2fea8bb5ba379bff78db9d056ea6d0965c68aa9b07938a52cbbf117186452b2b6c766aa4cf93cc3494ad91b763e8500e515e41d8cde31a3821ae dbe905f0935b2fea8bb5ba379bff78db9d056ea6d0965c68aa9b07938a52cbbf117186452b2b6c766aa4cf93cc3494ad91b763e8500e515e41d8cde31a3821ae
2212babaa9dc46d38ba239052c9c05151abe517cc8b493d0d351a96bf70c1efa4f7479f6ed0b75811429ba649906eb5657d73b0732b460e718a5c66603dcdbda 2212babaa9dc46d38ba239052c9c05151abe517cc8b493d0d351a96bf70c1efa4f7479f6ed0b75811429ba649906eb5657d73b0732b460e718a5c66603dcdbda
) )
caller_dir=$(dirname "$(readlink -f "$0")")
# shellcheck source=../paths.sh # shellcheck source=../paths.sh
source "../$caller_dir/paths.sh" source "/etc/s6-overlay/s6-rc.d/paths.sh"
CODE_SERVER_CONFIG="$DEFAULT_CONFIG_PATH/config.yaml" CODE_SERVER_CONFIG="$DEFAULT_CONFIG_PATH/config.yaml"

View file

@ -7,7 +7,7 @@
bashio::log.info "Initalizing code-server configs" bashio::log.info "Initalizing code-server configs"
# shellcheck source=../paths.sh # shellcheck source=../paths.sh
source "/etc/s6-overlay/s6-rc.d/init/paths.sh" source "/etc/s6-overlay/s6-rc.d/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"