@@ -159,11 +159,12 @@ resource "coder_agent" "coder" {
159159 startup_script = <<EOT
160160#!/bin/bash
161161
162- # Install code-server 4.8.3 under /tmp/code-server using the "standalone" installation
163- # that does not require root permissions. Note that /tmp may be mounted in tmpfs which
164- # can lead to increased RAM usage. To avoid this, you can pre-install code-server inside
165- # the Docker image or VM image.
166- curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.8.3
162+ # Install the latest code-server under /tmp/code-server using the "standalone"
163+ # installation that does not require root permissions. Note that /tmp may be
164+ # mounted in tmpfs which can lead to increased RAM usage. To avoid this, you can
165+ # pre-install code-server inside the Docker image or VM image.
166+ # Append "--version x.x.x" to install a specific version of code-server.
167+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
167168
168169# The & prevents the startup_script from blocking so the next commands can run.
169170# The stdout and stderr of code-server is redirected to /tmp/code-server.log.