mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-18 06:01:28 -05:00
add deploy-hostname script
This commit is contained in:
parent
ddc56da224
commit
3c248a9bd0
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