fix: add install_version to code-server
This commit is contained in:
@@ -50,11 +50,18 @@ variable "log_path" {
|
||||
default = "/tmp/code-server.log"
|
||||
}
|
||||
|
||||
variable "install_version" {
|
||||
type = string
|
||||
description = "The version of code-server to install."
|
||||
default = ""
|
||||
}
|
||||
|
||||
resource "coder_script" "code-server" {
|
||||
agent_id = var.agent_id
|
||||
display_name = "code-server"
|
||||
icon = "/icon/code.svg"
|
||||
script = templatefile("${path.module}/run.sh", {
|
||||
VERSION : var.install_version,
|
||||
EXTENSIONS : join(",", var.extensions),
|
||||
PORT : var.port,
|
||||
LOG_PATH : var.log_path,
|
||||
|
||||
Reference in New Issue
Block a user