From b4ba78897b166c9812b27d2cef6e98844a74d87c Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 8 Jan 2024 22:30:33 +0100 Subject: [PATCH] make_mirror.sh: add newline at the end of /etc/hosts so that appending writes to the next line and not the current --- make_mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index 39fbe1a..cb3220f 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -541,7 +541,7 @@ END --customize-hook='touch "$1/mmdebstrap-testenv"' \ --customize-hook='copy-in "'"$tmpdir"'/mmdebstrap.service" /etc/systemd/system/' \ --customize-hook='copy-in "'"$tmpdir"'/worker.sh" /' \ - --customize-hook='printf 127.0.0.1 localhost > "$1/etc/hosts"' \ + --customize-hook='echo 127.0.0.1 localhost > "$1/etc/hosts"' \ --customize-hook='printf "START=1\nDAEMON_OPTS=\"-h 127.0.0.1 -p 80 -u nobody -dd /mnt/cache -i /var/run/mini-httpd.pid -T UTF-8\"\n" > "$1/etc/default/mini-httpd"' \ "$mirror"