Create /srv/git when installing invirt-dev if it doesn't exist.
[invirt/packages/invirt-dev.git] / debian / invirt-dev.postinst
index 55bff25..d9b6b9b 100755 (executable)
@@ -16,6 +16,10 @@ case "$1" in
            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