diff --git a/code-server/main.tf b/code-server/main.tf index fbf26bb..97a40f8 100644 --- a/code-server/main.tf +++ b/code-server/main.tf @@ -26,12 +26,6 @@ variable "port" { default = 13337 } -variable "app_name" { - type = string - description = "The app name for the code-server application." - default = "code-server" -} - variable "display_name" { type = string description = "The display name for the code-server application." @@ -90,7 +84,7 @@ resource "coder_script" "code-server" { script = templatefile("${path.module}/run.sh", { VERSION : var.install_version, EXTENSIONS : join(",", var.extensions), - APP_NAME : var.app_name, + APP_NAME : var.display_name, PORT : var.port, LOG_PATH : var.log_path, INSTALL_PREFIX : var.install_prefix, diff --git a/code-server/run.sh b/code-server/run.sh index 89d74b9..f6229f3 100755 --- a/code-server/run.sh +++ b/code-server/run.sh @@ -47,4 +47,4 @@ fi echo "👷 Running code-server in the background..." echo "Check logs at ${LOG_PATH}!" -$CODE_SERVER --auth none --port ${PORT} --app-name ${APP_NAME} > ${LOG_PATH} 2>&1 & +$CODE_SERVER --auth none --port ${PORT} --app-name "${APP_NAME}" > ${LOG_PATH} 2>&1 &