diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run index 831efb2..dd1ca9d 100755 --- a/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run +++ b/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run @@ -9,25 +9,10 @@ declare config_path bashio::log.info 'Starting code-server...' -options+=() -# options+=(--user-data-dir="$CODE_SERVER_CONFIG_PATH/User") -# options+=(--extensions-dir="$CODE_SERVER_CONFIG_PATH/extensions") - -# options+=(--disable-telemetry) -# options+=(--disable-update-check) -# options+=(--disable-getting-started-override) -# options+=(--auth none) - -config -# Disable code authentication, we use HA authentication -options+=(--disable-workspace-trust) - - # Export env variables for the Home Assistant extension export HASS_SERVER="http://supervisor/core" export HASS_TOKEN="${SUPERVISOR_TOKEN:-}" # Run the code server -cd "${CODE_SERVER_CONFIG_PATH}" || bashio::exit.nok "Could not change working directory" exec code-server "/config" diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run index 980ce15..fbd1195 100755 --- a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run +++ b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-code-server/run @@ -30,7 +30,7 @@ readonly CODE_SERVER_CONFIG="/root/.config/code-server/config.yaml" # Ensure config path exists if [ bashio::config.has_value "config_path" ]; then - config_path=$(bashio::config "config_path") + config_path=$(bashio::config 'config_path') if ! bashio::fs.directory_exists "${config_path}"; then bashio::exit.nok "Configured config path does not exists" fi diff --git a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run index 5148c3e..63a032b 100755 --- a/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run +++ b/vscode/rootfs/etc/s6-overlay/s6-rc.d/init-mosquitto/run @@ -21,7 +21,7 @@ if bashio::services.available "mqtt"; then echo "--pw ${password}" echo "--port ${port}" echo "--username ${username}" - } > /root/.config/mosquitto_sub + } >/root/.config/mosquitto_sub ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_pub ln -s /root/.config/mosquitto_sub /root/.config/mosquitto_rr