projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
And std_init takes arguments, too
[invirt/packages/invirt-dev.git]
/
debian
/
invirt-dev.postinst
diff --git
a/debian/invirt-dev.postinst
b/debian/invirt-dev.postinst
index
b873ea2
..
d9b6b9b
100755
(executable)
--- a/
debian/invirt-dev.postinst
+++ b/
debian/invirt-dev.postinst
@@
-11,6
+11,16
@@
case "$1" in
if ! getent group repo >/dev/null 2>&1; then
addgroup --system repo
fi
if ! getent group repo >/dev/null 2>&1; then
addgroup --system repo
fi
+
+ if ! getent passwd git >/dev/null 2>&1; then
+ adduser --system --home /srv/git --shell /usr/bin/git-shell git
+ fi
+
+ if ! [ -d /srv/git ]; then
+ mkdir -p /srv/git
+ fi
+
+ invirt-build-conf
cat >>/etc/sudoers <<EOF
### BEGIN invirt-dev
cat >>/etc/sudoers <<EOF
### BEGIN invirt-dev