Forgejo: Update wait network logic

This commit is contained in:
Benoit 2024-10-22 19:20:08 +09:00
parent ee2cd89581
commit b4e481e44d
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA

View file

@ -17,8 +17,8 @@ ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
cd $WORKSPACE cd $WORKSPACE
incus launch images:$IMAGE $CNAME --quiet incus launch images:$IMAGE $CNAME --quiet
# Wait network # Wait for network
sleep 5 timeout 30 bash -c "until incus exec $CNAME -- ping -c1 google.com &>/dev/null; do sleep 1; done"
# Forgejo # Forgejo
incus exec $CNAME -- mkdir /etc/esh incus exec $CNAME -- mkdir /etc/esh