tech_notes

A collection of notes on setups and implementations.
Log | Files | Refs | README

commit 88b882366bd09e8b46b1ea53dbe9049b48886baa
parent e15b9d8ffece825cfd813d9d8a3cdc41b59bd791
Author: Julian Piribauer <julian.piribauer@gmail.com>
Date:   Thu, 19 Feb 2026 21:58:18 +0100

Changing user

Diffstat:
Mstagit.md | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/stagit.md b/stagit.md @@ -2,16 +2,15 @@ Stagit allows us to display git repositories running on a previously installed git server. -We give the user git the home: /srv/git and store the repos as /srv/git/repos/my_repo. -The web server has its root at /var/www/git/. +We give the user git the home: `/srv/git` and store the repos as `/srv/git/repos/my_repo`. +The web server has its root at `/var/www/git/`. ## Helper-script for executing stagit and stagit-index -First, we create a helper script that scans the repos/folders inside /srv/git/repos -and generates a website IF A FILE git-daemon-export-ok EXISTS. -Finally, all these public repos are listed in /var/www/git/index.html. +First, we create a helper script that scans the repos/folders inside `/srv/git/repos` and generates a website IF A FILE `git-daemon-export-ok` EXISTS. +Finally, all these public repos are listed in `/var/www/git/index.html`. -Create /usr/local/bin/update-stagit.sh with +Create `/usr/local/bin/update-stagit.sh` with ```bash #!/bin/sh @@ -69,14 +68,14 @@ and make it executable: We now set up a post-receive hook that creates the folder structure for new repos. -Inside /srv/git/template/hooks/post-receive: +Inside `/srv/git/template/hooks/post-receive`: ```bash #!/bin/sh /usr/local/bin/update-stagit.sh ``` -Make it executable as well with chmod +. +Make it executable as well with `chmod +x ...`. ## Set in default template @@ -102,4 +101,4 @@ $ git init --bare my_repo.git ``` The website and the repo endpoint will be updated upon the first push (and future ones). -Make sure to create a git-daemon-export-ok file to make the repo public. +Make sure to create a `git-daemon-export-ok` file to make the repo public.