On Mon, May 20, 2013 at 12:44:30AM -0700, Jonathan Nieder wrote: > Julian Gilbey wrote: > > On Sun, May 19, 2013 at 12:49:08PM -0700, Jonathan Nieder wrote: > > >> Maybe that suggests a way to make a smooth transition: > >> > >> 1. preinst installs symlinks /var/lib/git/* -> /var/cache/git/* > >> 2. updated conffiles refer to /var/lib/git > >> 3. NEWS.Debian helps admins move the data to /var/lib/git > > > > That could work, indeed. > > Ok, let's do that. A more complete automatic migration can always be > built on top of this later if someone writes the scripts for it.
OK. The patch for steps 2 and 3 looks good; just step 1 to go. > > Though I would recommend /srv/git instead of /var/lib/git, as that is > > the directory recommended by the git documentation. > > The FHS says > [...] > > which makes /srv/git a reasonable example for the documentation but > not something I can set up in the packaging. Users can always switch > to that on their on systems, though. Good point. > Here's a rough patch for step 1. Step 2 would be to make preinst > automatically create the appropriate symlinks to save most sysadmins > from the trouble of having to do anything to keep their system > working. Completely untested. Again, looks good at a read-through, but I haven't tried running it. The postinst for git-daemon{-run,-sysvinit} should restart or reload the daemon to account for the new configuration. Also, the suggestion to rmdir /var/lib/git will not work if it is filled with symlinks... Julian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org