mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-23 16:30:31 -05:00
add deploy-hostname script
This commit is contained in:
parent
37809b12ad
commit
5f5c590bbc
1 changed files with 14 additions and 0 deletions
14
deploy-hostname
Executable file
14
deploy-hostname
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. shared.sh
|
||||||
|
. hosts.sh
|
||||||
|
|
||||||
|
for host in ${hosts_all[@]}; do
|
||||||
|
remote=root@$host
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo $host
|
||||||
|
echo
|
||||||
|
|
||||||
|
ssh $remote hostnamectl hostname ${hosts_hostname[$host]}
|
||||||
|
done
|
||||||
Loading…
Add table
Add a link
Reference in a new issue