From 1a0e6c58c622a04a3550045f09989018d8290c3b Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 3 Nov 2022 15:26:26 +0330 Subject: cgit update --- terminaldweller.com/cgit/bootstrap/bootstrap.sh | 6 +++--- terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'terminaldweller.com/cgit/bootstrap') diff --git a/terminaldweller.com/cgit/bootstrap/bootstrap.sh b/terminaldweller.com/cgit/bootstrap/bootstrap.sh index a943ffb..d504064 100755 --- a/terminaldweller.com/cgit/bootstrap/bootstrap.sh +++ b/terminaldweller.com/cgit/bootstrap/bootstrap.sh @@ -1,5 +1,6 @@ #!/bin/sh set -e +set -x GIT_REPO_DIR=/etc/gitrepos ORIGIN_HTTPS=https://github.com/terminaldweller @@ -28,7 +29,6 @@ REPOS="cgrep \ seer \ devi-githooks \ kaminokumo \ - wikis \ grpc \ faultreiber \ luatablegen \ @@ -42,12 +42,12 @@ bootstrap() { update_repos() { for REPO in ${REPOS}; do - (cd "${GIT_REPO_DIR}/${REPO}" && git fetch) + (cd "${GIT_REPO_DIR}/${REPO}".git && git fetch || true) done } on_startup() { - dir_list=$(ls -A == "$1") + dir_list=$(ls -A "$1") if [ -z "$dir_list" ]; then bootstrap else diff --git a/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh b/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh index a6ea4d5..833d95b 100755 --- a/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh +++ b/terminaldweller.com/cgit/bootstrap/docker-entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh set -e +set -x . /bootstrap.sh -on_startup -crond -s -P -f +on_startup /etc/gitrepos/ +crond -n -s -P -- cgit v1.2.3