diff options
| author | Robert Günzler <r@gnzler.io> | 2026-04-09 11:04:46 +0900 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-04-22 14:36:52 +0900 |
| commit | f87c066685098da9a67dd410104cbba8c5fdcdbd (patch) | |
| tree | 5fe9d3c916931959d267123973e3123b1740a5e1 /scripts/git-init-repo | |
| parent | aa913b59b3e5048fec396ee4b50288f740cdfccf (diff) | |
deploy cgit
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rwxr-xr-x | scripts/git-init-repo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/git-init-repo b/scripts/git-init-repo new file mode 100755 index 0000000..fd2209b --- /dev/null +++ b/scripts/git-init-repo @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +repo_path="${1:?missing repo path}" +repo_desc="${2:?missing repo description}" + +exec bw run -S inazuma "cd /var/lib/git && git init --bare '$repo_path' && echo '$repo_desc' > '$repo_path'/description && chown -R robert:wheel '$repo_path'" |