Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 460a29b

Browse files
authored
Update 01-run.sh (#282)
1 parent 40c3ee1 commit 460a29b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stage2/03-install-umbrel/01-run.sh

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ git clone ${UMBREL_REPO} .
5757
git checkout "${UMBREL_BRANCH}"
5858
fi
5959

60+
# Apply patches to fix initial git clone timeout
61+
# Increase git timeout
62+
sed -i 's/timeout --foreground 30 git/timeout --foreground 300 git/g' ./scripts/repo || true
63+
# Only do shallow clone
64+
sed -i 's/timeout --foreground 300 git clone/timeout --foreground 300 git clone --depth 1/g' ./scripts/repo || true
65+
6066
# Download umbreld
6167
binary_url="https://github.com/getumbrel/umbrel/releases/download/v${UMBREL_VERSION}/umbreld-v${UMBREL_VERSION}-arm64.tar.gz"
6268
curl --fail --location "${binary_url}" | tar --extract --gzip --directory="./bin"

0 commit comments

Comments
 (0)