Package: gitolite
Version: 1.5.4-1
Severity: wishlist

Hi,

when changing GITDIR using dpkg-reconfigure (e.g., after having
installed gitolite with debconf prio > low, i.e., having the default
GITDIR = /var/lib/gitolite/), the following happens:

 * Because of the 'getent passwd' check in postinst (line 45), GITUSER
   will not be re-created, thus the old user having the old GITDIR as
   home directory will be preserved.

 * gl-setup uses 'cd' (without arguments) to change to the users home
   directory (line 57 in /usr/share/gitolite/gl-setup), i.e. it will
   (try to) change to the old GITDIR.

 * ⇒ the old GITDIR setting will still be used

I guess, this can be fixed by (unconditionally, or in case the user
exists already) setting GITUSER's home directory to GITDIR, e.g. using
usermod(8).

TIA,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to