|
|
@ -26,12 +26,6 @@ variable "port" {
|
|
|
|
default = 13337
|
|
|
|
default = 13337
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable "app_name" {
|
|
|
|
|
|
|
|
type = string
|
|
|
|
|
|
|
|
description = "The app name for the code-server application."
|
|
|
|
|
|
|
|
default = "code-server"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable "display_name" {
|
|
|
|
variable "display_name" {
|
|
|
|
type = string
|
|
|
|
type = string
|
|
|
|
description = "The display name for the code-server application."
|
|
|
|
description = "The display name for the code-server application."
|
|
|
@ -90,7 +84,7 @@ resource "coder_script" "code-server" {
|
|
|
|
script = templatefile("${path.module}/run.sh", {
|
|
|
|
script = templatefile("${path.module}/run.sh", {
|
|
|
|
VERSION : var.install_version,
|
|
|
|
VERSION : var.install_version,
|
|
|
|
EXTENSIONS : join(",", var.extensions),
|
|
|
|
EXTENSIONS : join(",", var.extensions),
|
|
|
|
APP_NAME : var.app_name,
|
|
|
|
APP_NAME : var.display_name,
|
|
|
|
PORT : var.port,
|
|
|
|
PORT : var.port,
|
|
|
|
LOG_PATH : var.log_path,
|
|
|
|
LOG_PATH : var.log_path,
|
|
|
|
INSTALL_PREFIX : var.install_prefix,
|
|
|
|
INSTALL_PREFIX : var.install_prefix,
|
|
|
|