aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cgit/bootstrap
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-11-03 11:56:26 +0000
committerterminaldweller <thabogre@gmail.com>2022-11-03 11:56:26 +0000
commit1a0e6c58c622a04a3550045f09989018d8290c3b (patch)
treed8c083ecf3feaa42a2778e2fa9a4dc9ee070c80d /terminaldweller.com/cgit/bootstrap
parentupdate (diff)
downloadscripts-1a0e6c58c622a04a3550045f09989018d8290c3b.tar.gz
scripts-1a0e6c58c622a04a3550045f09989018d8290c3b.zip
cgit update
Diffstat (limited to '')
-rwxr-xr-xterminaldweller.com/cgit/bootstrap/bootstrap.sh6
-rwxr-xr-xterminaldweller.com/cgit/bootstrap/docker-entrypoint.sh5
2 files changed, 6 insertions, 5 deletions
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