set telemetry level

pull/42/head
Muhammad Atif Ali 2 years ago
parent 60fbc76e50
commit 7daa749a98
No known key found for this signature in database

@ -57,12 +57,6 @@ variable "accept_license" {
} }
} }
variable "custom_version" {
type = string
description = "The version of VS Code to install."
default = "latest"
}
resource "coder_script" "vscode-server" { resource "coder_script" "vscode-server" {
agent_id = var.agent_id agent_id = var.agent_id
display_name = "vscode-server" display_name = "vscode-server"
@ -70,8 +64,8 @@ resource "coder_script" "vscode-server" {
script = templatefile("${path.module}/run.sh", { script = templatefile("${path.module}/run.sh", {
PORT : var.port, PORT : var.port,
LOG_PATH : var.log_path, LOG_PATH : var.log_path,
VERSION : var.custom_version,
INSTALL_DIR : var.install_dir, INSTALL_DIR : var.install_dir,
TELEMETRY : var.telemetry,
}) })
run_on_start = true run_on_start = true
} }

@ -14,4 +14,4 @@ printf "🥳 vscode-server has been installed.\n\n"
echo "👷 Running ${INSTALL_DIR}/bin/code serve-web --port ${PORT} --without-connection-token --accept-server-license-terms in the background..." echo "👷 Running ${INSTALL_DIR}/bin/code serve-web --port ${PORT} --without-connection-token --accept-server-license-terms in the background..."
echo "Check logs at ${LOG_PATH}!" echo "Check logs at ${LOG_PATH}!"
${INSTALL_DIR}/bin/code-server serve-local --port ${PORT} --without-connection-token --accept-server-license-terms >${LOG_PATH} 2>&1 & ${INSTALL_DIR}/bin/code-server serve-local --port ${PORT} --without-connection-token --accept-server-license-terms --telemetry-level ${TELEMETRY} >${LOG_PATH} 2>&1 &

Loading…
Cancel
Save