wip
This commit is contained in:
parent
8664ded490
commit
b32b2d4329
@ -345,11 +345,12 @@ resource "coder_script" "install_agent" {
|
|||||||
agent_id = var.agent_id
|
agent_id = var.agent_id
|
||||||
display_name = "Install agent"
|
display_name = "Install agent"
|
||||||
run_on_start = true
|
run_on_start = true
|
||||||
log_path = "/${local.module_dir_name}/install.log"
|
log_path = "$${HOME}/${local.module_dir_name}/install.log"
|
||||||
script = <<EOF
|
script = <<EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
set -x
|
||||||
|
|
||||||
echo -n '${base64encode(local.install_script)}' | base64 -d > /tmp/install.sh
|
echo -n '${base64encode(local.install_script)}' | base64 -d > /tmp/install.sh
|
||||||
echo -n '${base64encode(local.start_script)}' | base64 -d > /tmp/start.sh
|
echo -n '${base64encode(local.start_script)}' | base64 -d > /tmp/start.sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user