Skip to content

Commit

Permalink
Merge pull request kubernetes#123929 from munnerz/fixup-allow-host-rs…
Browse files Browse the repository at this point in the history
…yncd

build/rsyncd: replace newlines with spaces when generating ALLOW_HOST list
  • Loading branch information
k8s-ci-robot authored Apr 18, 2024
2 parents 527590e + 1c88cd6 commit f401f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ function kube::build::start_rsyncd_container() {
V=3 kube::log::status "Starting rsyncd container"
kube::build::run_build_command_ex \
"${KUBE_RSYNC_CONTAINER_NAME}" -p 127.0.0.1:"${KUBE_RSYNC_PORT}":"${KUBE_CONTAINER_RSYNC_PORT}" -d \
-e ALLOW_HOST="$(${IPTOOL} | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')" \
-e ALLOW_HOST="$(${IPTOOL} | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | tr '\n' ' ')" \
-- /rsyncd.sh >/dev/null

local mapped_port
Expand Down

0 comments on commit f401f30

Please sign in to comment.