Create /srv/git when installing invirt-dev if it doesn't exist.
authorEvan Broder <broder@mit.edu>
Sat, 5 Dec 2009 22:14:29 +0000 (17:14 -0500)
committerEvan Broder <broder@mit.edu>
Sat, 5 Dec 2009 22:14:29 +0000 (17:14 -0500)
(Otherwise invirt-build-conf fails)

svn path=/trunk/packages/invirt-dev/; revision=2588

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