Add helper script wait_network
This commit is contained in:
parent
537481a849
commit
e8cd68c722
4 changed files with 9 additions and 6 deletions
6
cfg/scripts/wait_network
Normal file
6
cfg/scripts/wait_network
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/env bash
|
||||
# Upstream doc: https://www.navidrome.org/docs/installation/linux/
|
||||
set -euxo pipefail
|
||||
|
||||
CNAME="$1"
|
||||
timeout 30 bash -c "until incus exec $CNAME -- ping -c1 google.com &>/dev/null; do sleep 1; done"
|
Loading…
Add table
Add a link
Reference in a new issue