X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/831bdddd73759def227e52088b61e22605e5f965..e1f7b2844093a084076a7e173b410a5d31ff6674:/debian/invirt-dev.postinst diff --git a/debian/invirt-dev.postinst b/debian/invirt-dev.postinst index 55bff25..9c17d85 100755 --- a/debian/invirt-dev.postinst +++ b/debian/invirt-dev.postinst @@ -16,13 +16,19 @@ case "$1" in adduser --system --home /srv/git --shell /usr/bin/git-shell git fi - invirt-build-conf - + if ! [ -d /srv/git ]; then + mkdir -p /srv/git + fi + cat >>/etc/sudoers </dev/null; then + invoke-rc.d invirtibuilder start + else + /etc/init.d/invirtibuilder start + fi +fi