addon-vscode/vscode/temp/code-server/run
2025-04-14 13:58:56 -07:00

18 lines
571 B
Text

#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: Studio Code Server
# Runs the code-server
# ==============================================================================
declare -a options
declare config_path
bashio::log.info 'Starting code-server...'
# Export env variables for the Home Assistant extension
export HASS_SERVER="http://supervisor/core"
export HASS_TOKEN="${SUPERVISOR_TOKEN:-}"
# Run the code server
exec code-server "/config"