Wait connection to fetch updates

master
Quentin Duchemin 2024-05-02 11:01:36 +02:00
parent 345606b800
commit 37d50f5984
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# Wait for connection # Wait for connection
sleep 5
source $(dirname $0)/../.env source $(dirname $0)/../.env
connect=$(ping -q -w 1 -c 1 8.8.8.8 &> /dev/null) connect=$(ping -q -w 1 -c 1 8.8.8.8 &> /dev/null)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then