From 2df174d22d315642f2bc2a077c0bd8aed7ceb4a9 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Thu, 22 Aug 2024 10:06:00 +0900 Subject: [PATCH] docs(ja): Fix correct the sed command while set the hostname --- docs/ja/03-compute-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ja/03-compute-resources.md b/docs/ja/03-compute-resources.md index 1db0c25..a226685 100644 --- a/docs/ja/03-compute-resources.md +++ b/docs/ja/03-compute-resources.md @@ -105,7 +105,7 @@ aarch64 GNU/Linux ```bash while read IP FQDN HOST SUBNET; do - CMD="sed -i 's/^127.0.1.1.*/127.0.1.1\t${FQDN} ${HOST}/' /etc/hosts" + CMD="sed -i 's/^127.0.0.1.*/127.0.0.1\t${FQDN} ${HOST}/' /etc/hosts" ssh -n root@${IP} "$CMD" ssh -n root@${IP} hostnamectl hostname ${HOST} done < machines.txt