pull/61/head
Muhammad Atif Ali 2 years ago
parent 4393fb6f0f
commit 9fe0e452e4
No known key found for this signature in database

@ -47,12 +47,11 @@ resource "coder_script" "filebrowser" {
} }
resource "coder_app" "filebrowser" { resource "coder_app" "filebrowser" {
agent_id = var.agent_id agent_id = var.agent_id
slug = "filebrowser" slug = "filebrowser"
display_name = "File Browser" display_name = "File Browser"
url = "http://localhost:${var.port}" url = "http://localhost:${var.port}"
icon = "https://raw.githubusercontent.com/filebrowser/logo/master/icon_raw.svg" icon = "https://raw.githubusercontent.com/filebrowser/logo/master/icon_raw.svg"
subdomain = true subdomain = true
share = "owner" share = "owner"
start_blocks_login = true
} }

@ -26,12 +26,13 @@ variable "agent_id" {
} }
resource "coder_script" "git_clone" { resource "coder_script" "git_clone" {
agent_id = var.agent_id agent_id = var.agent_id
display_name = "Git Clone"
icon = "/icons/git.svg"
script = templatefile("${path.module}/run.sh", { script = templatefile("${path.module}/run.sh", {
CLONE_PATH : var.path != "" ? var.path : join("/", ["~", basename(var.url)]), CLONE_PATH : var.path != "" ? var.path : join("/", ["~", basename(var.url)]),
REPO_URL : 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
} }

Loading…
Cancel
Save