From c994b9baaabea481d06bf80fbb19dc43dd1ec9cc Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 3 Jan 2023 15:04:53 +0100 Subject: git: enable cgit cache, about page, clone-url --- roles/git/files/gitolite-cgit/entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/git/files/gitolite-cgit/entrypoint.sh') diff --git a/roles/git/files/gitolite-cgit/entrypoint.sh b/roles/git/files/gitolite-cgit/entrypoint.sh index 905bf97..873a0ac 100755 --- a/roles/git/files/gitolite-cgit/entrypoint.sh +++ b/roles/git/files/gitolite-cgit/entrypoint.sh @@ -22,9 +22,16 @@ if [ ! -f /var/lib/git/.ssh/authorized_keys ]; then su - git -c 'gitolite setup --pubkey /tmp/admin.pub' rm -f /tmp/admin.pub else + # Fixup gitolite, eg in case a new repo was added manually. su - git -c 'gitolite setup' fi +# -- SETUP: cgit --------------------------------------------------------------- + +# Ensure default cache directory exists. +# Adapt if cache-root is changed in cgitrc(5). +mkdir -p /var/cache/cgit + # -- SETUP: sshd --------------------------------------------------------------- # Generate ssh host keys (nop if keys already exist). -- cgit v1.2.3