diff options
Diffstat (limited to 'abs/extra/git/git.install')
-rw-r--r-- | abs/extra/git/git.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/extra/git/git.install b/abs/extra/git/git.install new file mode 100644 index 0000000..064eda0 --- /dev/null +++ b/abs/extra/git/git.install @@ -0,0 +1,12 @@ +post_install() { + if ! getent group git >/dev/null; then + groupadd --system git + fi + if ! getent passwd git >/dev/null; then + useradd --system -c 'git daemon user' -g git -d / -s /bin/bash git + fi +} + +post_upgrade() { + post_install $1 +} |