From 0acbcb648e051fe5c065abe0d60687665517e230 Mon Sep 17 00:00:00 2001 From: Jay Kumar Date: Fri, 17 Apr 2026 16:48:33 +0000 Subject: [PATCH] fix(agentapi): use double quotes for ARG_LIB_SCRIPT_PATH The module_directory default contains $HOME which needs shell expansion at runtime. Single quotes prevented expansion, causing 'No such file or directory' when sourcing the lib script. --- registry/coder/modules/agentapi/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/agentapi/main.tf b/registry/coder/modules/agentapi/main.tf index 95b53114..f75c3e78 100644 --- a/registry/coder/modules/agentapi/main.tf +++ b/registry/coder/modules/agentapi/main.tf @@ -222,7 +222,7 @@ resource "coder_script" "agentapi" { ARG_ENABLE_STATE_PERSISTENCE='${var.enable_state_persistence}' \ ARG_STATE_FILE_PATH='${var.state_file_path}' \ ARG_PID_FILE_PATH='${var.pid_file_path}' \ - ARG_LIB_SCRIPT_PATH='${local.lib_script_destination}' \ + ARG_LIB_SCRIPT_PATH="${local.lib_script_destination}" \ "${local.main_script_destination}" EOT run_on_start = true @@ -248,7 +248,7 @@ resource "coder_script" "agentapi_shutdown" { ARG_ENABLE_STATE_PERSISTENCE='${var.enable_state_persistence}' \ ARG_MODULE_DIR_NAME='${var.module_dir_name}' \ ARG_PID_FILE_PATH='${var.pid_file_path}' \ - ARG_LIB_SCRIPT_PATH='${local.lib_script_destination}' \ + ARG_LIB_SCRIPT_PATH="${local.lib_script_destination}" \ "${local.shutdown_script_destination}" EOT }