summaryrefslogtreecommitdiffstats
path: root/abs/extra/git/git.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-09-21 20:37:19 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-09-21 20:37:19 (GMT)
commit59386a777a8fc6edcb252ac24f74d1e680647db5 (patch)
treed7651fb1535bd8def3cf9ee1b80dfb56a8771dfe /abs/extra/git/git.install
parentb927a8f31804f4bc280dbd254392ba2c5a5b6327 (diff)
downloadlinhes_pkgbuild-59386a777a8fc6edcb252ac24f74d1e680647db5.zip
linhes_pkgbuild-59386a777a8fc6edcb252ac24f74d1e680647db5.tar.gz
linhes_pkgbuild-59386a777a8fc6edcb252ac24f74d1e680647db5.tar.bz2
git: update to 2.5.3
Diffstat (limited to 'abs/extra/git/git.install')
-rw-r--r--abs/extra/git/git.install12
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
+}