mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(dogfood): fix startup script looping (#11972)
Seems to be on account of the quotes interpreting a ~ literally. We do replace it with /home/coder but only if it matches ~/, not ~ alone.
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ locals {
|
||||
"sa-saopaulo" = "tcp://oberstein-sao-cdr-dev.tailscale.svc.cluster.local:2375"
|
||||
}
|
||||
|
||||
repo_base_dir = replace(data.coder_parameter.repo_base_dir.value, "/^~\\//", "/home/coder/")
|
||||
repo_base_dir = data.coder_parameter.repo_base_dir.value == "~" ? "/home/coder" : replace(data.coder_parameter.repo_base_dir.value, "/^~\\//", "/home/coder/")
|
||||
repo_dir = module.git-clone.repo_dir
|
||||
container_name = "coder-${data.coder_workspace.me.owner}-${lower(data.coder_workspace.me.name)}"
|
||||
jfrog_host = replace(var.jfrog_url, "https://", "")
|
||||
|
||||
Reference in New Issue
Block a user