mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
13 lines
308 B
Bash
13 lines
308 B
Bash
#!/usr/bin/env bash
|
|
set -eu -o pipefail
|
|
|
|
# Wait until the host yodaNas is reachable with SSH.
|
|
while :; do
|
|
result="$(ssh yodaNas 'hostname')" && e=0 || e=$?
|
|
if [ "${e}" = 0 ] && [ "${result}" = 'yodaNas' ]; then
|
|
break
|
|
fi
|
|
printf '%s\n' 'Delaying due to SSH connectivity problems.'
|
|
sleep 10s
|
|
done
|