summarylogtreecommitdiffstats
path: root/gitosis.install
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis.install')
-rw-r--r--gitosis.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/gitosis.install b/gitosis.install
new file mode 100644
index 000000000000..98d949965079
--- /dev/null
+++ b/gitosis.install
@@ -0,0 +1,22 @@
+post_install() {
+ groupadd -r git &> /dev/null
+ useradd -r -m -k /dev/null -g git -d /srv/gitosis -s /bin/sh git &> /dev/null
+ mkdir -p /srv/gitosis
+ chmod 0700 /srv/gitosis
+
+ echo " > Example config files are installed in:"
+ echo " > /usr/share/doc/gitosis"
+ echo " >"
+ echo " > You can get more information from:"
+ echo " > https://wiki.archlinux.org/index.php/Gitosis"
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ userdel git &> /dev/null
+ groupdel git &> /dev/null
+}
+