We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d882999 commit c8c31cdCopy full SHA for c8c31cd
terraform/gateways/vm.tf
@@ -81,7 +81,7 @@ cat << EOF > /etc/systemd/system/gateway-agent.service
81
Description=Gateway Agent
82
83
[Service]
84
-ExecStartPre=/bin/bash '/usr/bin/curl -LO https://github.com/nais/device/releases/download/\$(curl --silent "https://api.github.com/repos/nais/device/releases/latest" | grep \'"tag_name":\' | sed -E \'s/.*"([^"]+)".*/\1/\')/gateway-agent'
+ExecStartPre=/bin/bash -c '/usr/bin/curl -LO https://github.com/nais/device/releases/download/\$(curl --silent "https://api.github.com/repos/nais/device/releases/latest" | grep \'"tag_name":\' | sed -E \'s/.*"([^"]+)".*/\1/\')/gateway-agent'
85
ExecStartPre=/bin/chmod 700 gateway-agent
86
ExecStartPre=/bin/mkdir -p /opt/nais-device/bin/
87
ExecStartPre=/bin/mv gateway-agent /opt/nais-device/bin/
0 commit comments