From 460a29bff41f665e161d8fb5af3b53e69f96130c Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 16 Oct 2023 19:48:04 +0700 Subject: [PATCH] Update 01-run.sh (#282) --- stage2/03-install-umbrel/01-run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stage2/03-install-umbrel/01-run.sh b/stage2/03-install-umbrel/01-run.sh index f2bb30c4..76f55886 100755 --- a/stage2/03-install-umbrel/01-run.sh +++ b/stage2/03-install-umbrel/01-run.sh @@ -57,6 +57,12 @@ git clone ${UMBREL_REPO} . git checkout "${UMBREL_BRANCH}" fi +# Apply patches to fix initial git clone timeout +# Increase git timeout +sed -i 's/timeout --foreground 30 git/timeout --foreground 300 git/g' ./scripts/repo || true +# Only do shallow clone +sed -i 's/timeout --foreground 300 git clone/timeout --foreground 300 git clone --depth 1/g' ./scripts/repo || true + # Download umbreld binary_url="https://github.com/getumbrel/umbrel/releases/download/v${UMBREL_VERSION}/umbreld-v${UMBREL_VERSION}-arm64.tar.gz" curl --fail --location "${binary_url}" | tar --extract --gzip --directory="./bin"