Skip to content

Commit c8c31cd

Browse files
committed
add missing param to bash call
1 parent d882999 commit c8c31cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/gateways/vm.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ cat << EOF > /etc/systemd/system/gateway-agent.service
8181
Description=Gateway Agent
8282
8383
[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'
84+
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'
8585
ExecStartPre=/bin/chmod 700 gateway-agent
8686
ExecStartPre=/bin/mkdir -p /opt/nais-device/bin/
8787
ExecStartPre=/bin/mv gateway-agent /opt/nais-device/bin/

0 commit comments

Comments
 (0)