Skip to content

Commit 0cbdf8b

Browse files
update
1 parent 467d851 commit 0cbdf8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

code-server/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ resource "coder_script" "code-server" {
8282
LOG_PATH : var.log_path,
8383
INSTALL_PREFIX : var.install_prefix,
8484
// This is necessary otherwise the quotes are stripped!
85-
SETTINGS : replace(jsonencode(var.settings), "\"", "\\\""),
86-
})
85+
SETTINGS : replace(replace(replace(jsonencode(var.settings), "\"", "\\\""),"\"[","[\\\""),"]\","\\\"]")
8786
run_on_start = true
8887
}
8988

0 commit comments

Comments
 (0)