diff --git a/cloudbuild/external.pkr.hcl b/cloudbuild/external.pkr.hcl index 9441074b..d6a0d3cd 100644 --- a/cloudbuild/external.pkr.hcl +++ b/cloudbuild/external.pkr.hcl @@ -78,8 +78,8 @@ build { "echo \"fs.inotify.max_queued_events=13107200\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers "echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco 8000e containers "sudo modprobe br_netfilter", - "sudo echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables", - "sudo echo 1 > /proc/sys/net/ipv4/ip_forward", + "echo \"1\" > sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables", + "echo \"1\" > sudo tee /proc/sys/net/ipv4/ip_forward", "sudo sysctl --system", "sudo sysctl -p", ] diff --git a/cloudbuild/internal.pkr.hcl b/cloudbuild/internal.pkr.hcl index 912d0d15..0b982feb 100644 --- a/cloudbuild/internal.pkr.hcl +++ b/cloudbuild/internal.pkr.hcl @@ -115,8 +115,8 @@ build { "sudo install packaging/systemd/* /etc/systemd/system", "sudo sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service", "sudo modprobe br_netfilter", - "sudo echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables", - "sudo echo 1 > /proc/sys/net/ipv4/ip_forward", + "echo \"1\" > sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables", + "echo \"1\" > sudo tee /proc/sys/net/ipv4/ip_forward", "sudo sysctl --system", "sudo sysctl -p", "sudo systemctl daemon-reload",