zfs-mirror wait online

This commit is contained in:
cronekorkn 2022-10-07 22:05:45 +02:00
parent 97e5a2b921
commit bc13ff7711
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
while ! ping -c1 -t2 "${server_ip}"
do
sleep 3
done
set -exu set -exu
ssh="ssh -o ConnectTimeout=5 root@${server_ip}" ssh="ssh -o ConnectTimeout=5 root@${server_ip}"