From 4393fb6f0fc557813c603336037fd26d3f3579c3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 28 Sep 2023 16:05:05 +0300 Subject: [PATCH 1/2] chore: add `start_blocks_login=true` --- filebrowser/main.tf | 15 ++++++++------- personalize/main.tf | 9 +++++---- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/filebrowser/main.tf b/filebrowser/main.tf index e6240045..56390791 100644 --- a/filebrowser/main.tf +++ b/filebrowser/main.tf @@ -47,11 +47,12 @@ resource "coder_script" "filebrowser" { } resource "coder_app" "filebrowser" { - agent_id = var.agent_id - slug = "filebrowser" - display_name = "File Browser" - url = "http://localhost:${var.port}" - icon = "https://raw.githubusercontent.com/filebrowser/logo/master/icon_raw.svg" - subdomain = true - share = "owner" + agent_id = var.agent_id + slug = "filebrowser" + display_name = "File Browser" + url = "http://localhost:${var.port}" + icon = "https://raw.githubusercontent.com/filebrowser/logo/master/icon_raw.svg" + subdomain = true + share = "owner" + start_blocks_login = true } diff --git a/personalize/main.tf b/personalize/main.tf index 7235530e..9de4b789 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 } From 9fe0e452e4a7eeba2f31899a1a3ad0d5771eef24 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 28 Sep 2023 16:10:31 +0300 Subject: [PATCH 2/2] fix --- filebrowser/main.tf | 15 +++++++-------- git-clone/main.tf | 9 +++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/filebrowser/main.tf b/filebrowser/main.tf index 56390791..e6240045 100644 --- a/filebrowser/main.tf +++ b/filebrowser/main.tf @@ -47,12 +47,11 @@ resource "coder_script" "filebrowser" { } resource "coder_app" "filebrowser" { - agent_id = var.agent_id - slug = "filebrowser" - display_name = "File Browser" - url = "http://localhost:${var.port}" - icon = "https://raw.githubusercontent.com/filebrowser/logo/master/icon_raw.svg" - subdomain = true - share = "owner" - start_blocks_login = true + agent_id = var.agent_id + slug = "filebrowser" + display_name = "File Browser" + url = "http://localhost:${var.port}" + icon = "https://raw.githubusercontent.com/filebrowser/logo/master/icon_raw.svg" + subdomain = true + share = "owner" } diff --git a/git-clone/main.tf b/git-clone/main.tf index 0e0b23ea..1d15dfea 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 }