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.
This commit is contained in:
parent
b9d352e1ad
commit
0acbcb648e
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user