fixed a script issue in document 3-compute-resources

pull/791/head
Vishwanath 2024-07-06 00:38:24 +05:30
parent a9cb5f7ba5
commit 80b442fa2d
1 changed files with 1 additions and 1 deletions

View File

@ -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
```