From 82c86db196285fc71b3cd946e1c45ffa02ee1871 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Wed, 3 Dec 2025 15:12:00 +0100 Subject: [PATCH] test --- registry/coder-labs/modules/open-webui/main.tf | 4 ++-- registry/coder-labs/modules/open-webui/run.sh | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/registry/coder-labs/modules/open-webui/main.tf b/registry/coder-labs/modules/open-webui/main.tf index 45667770..7ebd772a 100644 --- a/registry/coder-labs/modules/open-webui/main.tf +++ b/registry/coder-labs/modules/open-webui/main.tf @@ -51,7 +51,7 @@ variable "group" { resource "coder_script" "open-webui" { agent_id = var.agent_id display_name = "open-webui" - icon = "/icon/openai.svg" + icon = "/icon/openwebui.svg" script = templatefile("${path.module}/run.sh", { HTTP_SERVER_LOG_PATH : var.log_path, HTTP_SERVER_PORT : var.port, @@ -64,7 +64,7 @@ resource "coder_app" "open-webui" { slug = "open-webui" display_name = "Open WebUI" url = "http://localhost:${var.port}" - icon = "/icon/openai.svg" + icon = "/icon/openwebui.svg" subdomain = true share = var.share order = var.order diff --git a/registry/coder-labs/modules/open-webui/run.sh b/registry/coder-labs/modules/open-webui/run.sh index 2b942ba9..91ac046a 100755 --- a/registry/coder-labs/modules/open-webui/run.sh +++ b/registry/coder-labs/modules/open-webui/run.sh @@ -1,8 +1,12 @@ #!/usr/bin/env sh -set -e -HTTP_SERVER_LOG_PATH=$${HTTP_SERVER_LOG_PATH} -HTTP_SERVER_PORT=$${HTTP_SERVER_PORT} +set -eu + +echo "1. $${HTTP_SERVER_LOG_PATH}" +echo "2. ${HTTP_SERVER_LOG_PATH}" + +HTTP_SERVER_LOG_PATH=${HTTP_SERVER_LOG_PATH} +HTTP_SERVER_PORT=${HTTP_SERVER_PORT} # shellcheck disable=SC2059 printf '\033[0;1mInstalling Open WebUI...\n\n'