From 80b442fa2df8a548de530b1b17c92d5245163af5 Mon Sep 17 00:00:00 2001 From: Vishwanath Date: Sat, 6 Jul 2024 00:38:24 +0530 Subject: [PATCH] fixed a script issue in document 3-compute-resources --- docs/03-compute-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/03-compute-resources.md b/docs/03-compute-resources.md index 207805a..8e9b77c 100644 --- a/docs/03-compute-resources.md +++ b/docs/03-compute-resources.md @@ -107,7 +107,7 @@ Set the hostname on each machine listed in the `machines.txt` file: while read IP FQDN HOST SUBNET; do CMD="sed -i 's/^127.0.1.1.*/127.0.1.1\t${FQDN} ${HOST}/' /etc/hosts" ssh -n root@${IP} "$CMD" - ssh -n root@${IP} hostnamectl hostname ${HOST} + ssh -n root@${IP} hostnamectl set-hostname ${HOST} done < machines.txt ```