Richard Braakman wrote: > This seems unnecessarily complex. You do not need to change the directory. > I suggest (using absolute links while I'm at it): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > if [ -d /usr/doc ]; then > if [ ! -e /usr/doc/$package -a -d /usr/share/doc/$package ]; the > n > ln -s /usr/share/doc/$package /usr/doc/$package > fi > fi
Don't use absolute links. >From policy version 2.5.0.0: 4.5. Symbolic links ------------------- In general, symbolic links within a toplevel directory should be relative, and symbolic links pointing from one toplevel directory into another should be absolute. (A toplevel directory is a sub-directory of the root directory `/'.) Peter