mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-07 04:31:24 +00:00
18 lines
571 B
Text
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"
|
|
|