chiark / gitweb /
git-daemon: overhaul configuration and add the userv service script
[userv-utils.git] / git-daemon / git-upload-pack
diff --git a/git-daemon/git-upload-pack b/git-daemon/git-upload-pack
new file mode 100644 (file)
index 0000000..39a2994
--- /dev/null
@@ -0,0 +1,13 @@
+# userv configuration for git-daemon git-upload-pack service
+#
+# This was written by Tony Finch <dot@dotat.at>
+# You may do anything with it, at your own risk.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+if ( grep service-user-shell /etc/shells
+   & glob calling-user git
+   )
+        reset
+       errors-to-syslog daemon error
+       execute /usr/local/lib/userv/git-daemon-service /etc/userv/git-daemon-urlmap.pl .userv/git-daemon-urlmap.pl
+fi