addon-vscode/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run
Richard Sperry b46efae311 devenv
2025-04-16 22:53:46 -07:00

17 lines
625 B
Text

#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: Studio Code Server
# Runs the code-server
# ==============================================================================
bashio::log.info 'Starting code-server...'
# shellcheck source=../paths.sh
source "/etc/s6-overlay/s6-rc.d/paths.sh"
# 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 "$CODE_SERVER_WORKSPACE_FILE"