From b031136552e7ea5f64edee83b0b524764df9f79e Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 28 Sep 2023 16:14:04 +0300 Subject: [PATCH] chore: add `start_blocks_login=true` (#61) --- git-clone/main.tf | 9 +++++---- personalize/main.tf | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/git-clone/main.tf b/git-clone/main.tf index 0e0b23e..1d15dfe 100644 --- a/git-clone/main.tf +++ b/git-clone/main.tf @@ -26,12 +26,13 @@ variable "agent_id" { } resource "coder_script" "git_clone" { - agent_id = var.agent_id - display_name = "Git Clone" - icon = "/icons/git.svg" + agent_id = var.agent_id script = templatefile("${path.module}/run.sh", { CLONE_PATH : var.path != "" ? var.path : join("/", ["~", basename(var.url)]), REPO_URL : var.url, }) - run_on_start = true + display_name = "Git Clone" + icon = "/icons/git.svg" + run_on_start = true + start_blocks_login = true } diff --git a/personalize/main.tf b/personalize/main.tf index 7235530..9de4b78 100644 --- a/personalize/main.tf +++ b/personalize/main.tf @@ -31,8 +31,9 @@ resource "coder_script" "personalize" { script = templatefile("${path.module}/run.sh", { PERSONALIZE_PATH : var.path, }) - display_name = "Personalize" - icon = "/icon/personalize.svg" - log_path = var.log_path - run_on_start = true + display_name = "Personalize" + icon = "/icon/personalize.svg" + log_path = var.log_path + run_on_start = true + start_blocks_login = true }