[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#133934: tetex-bin: doesn't work as a non-root user



On Sun, Mar 03, 2002 at 02:48:24PM +0100, Christoph Martin wrote:
> I don't want to do a dpkg-statoverride but a chmod in debian/rules.

You don't want to use dpkg-statoverride in a postinst; that command is
intended for the sysadmin to use.

Correct solution:

Include the directories with the correct permissions in the .deb.
Then if the sysadmin wants to change the permissions, they can use
dpkg-statoverride.

Or better still, do something like the following in the postinst:

VARTEXFONTS=`kpsewhich --expand-var='$VARTEXFONTS'`
if [ -n "$VARTEXFONTS" ]; then
  if [ ! -d "$VARTEXFONTS" ]; then
    texconfig font vardir "$VARTEXFONTS"
  fi
fi

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

     Julian Gilbey, Dept of Maths,             Debian GNU/Linux Developer
      Queen Mary, Univ. of London         see http://people.debian.org/~jdg/
   http://www.maths.qmul.ac.uk/~jdg/           or http://www.debian.org/
        Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: