Skip to content

Commit

Permalink
fix: restore version code-server
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaindaiz committed Oct 16, 2023
1 parent 6ecb7f4 commit e9abb2e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code-workspaces/modules/code-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ variable "log_path" {
default = "/tmp/code-server.log"
}

variable "install_version" {
type = string
description = "The version of code-server to install."
default = ""
}

variable "install_prefix" {
type = string
description = "The prefix to install code-server to."
Expand All @@ -58,6 +64,7 @@ resource "coder_script" "code-server" {
LOG_PATH : var.log_path,
PORT : var.port,
EXTENSIONS : join(",", var.extensions),
VERSION : var.install_version,
INSTALL_PREFIX : var.install_prefix,
// This is necessary otherwise the quotes are stripped!
SETTINGS : replace(jsonencode(var.settings), "\"", "\\\""),
Expand Down

0 comments on commit e9abb2e

Please sign in to comment.