This commit is contained in:
35C4n0r 2025-12-05 19:08:58 +05:30
parent 8664ded490
commit b32b2d4329
No known key found for this signature in database
GPG Key ID: 5B71E5C9D18D5675

View File

@ -345,11 +345,12 @@ resource "coder_script" "install_agent" {
agent_id = var.agent_id
display_name = "Install agent"
run_on_start = true
log_path = "/${local.module_dir_name}/install.log"
log_path = "$${HOME}/${local.module_dir_name}/install.log"
script = <<EOF
#!/bin/bash
set -o errexit
set -o pipefail
set -x
echo -n '${base64encode(local.install_script)}' | base64 -d > /tmp/install.sh
echo -n '${base64encode(local.start_script)}' | base64 -d > /tmp/start.sh