Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from 2opremio/patch-1
Browse files Browse the repository at this point in the history
Retry downloading and unpacking archive
  • Loading branch information
stefanprodan authored May 15, 2019
2 parents ea79ce4 + a623cc8 commit 8a67fea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ REPO_DIR="/git-server/repos/${REPO}"
init_repo() {
mkdir "${REPO_DIR}"
cd /git-server/repos
curl --verbose --location --fail "${TAR_URL}" | tar xz -C "./${REPO}" --strip-components=1
while ! curl --verbose --location --fail "${TAR_URL}" | tar xz -C "./${REPO}" --strip-components=1; do
sleep 1
done
cd "${REPO_DIR}"
git init --shared=true
git add .
Expand Down

0 comments on commit 8a67fea

Please sign in to comment.