X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/831bdddd73759def227e52088b61e22605e5f965..c18b949497aa66780761a80967bbfb8747001827:/debian/invirt-dev.postinst?ds=sidebyside 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