aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cgit/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'terminaldweller.com/cgit/bootstrap')
-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