Bug#183357: Making a symlink in the post installation script?

Andreas Metzler Andreas Metzler <ametzler@downhill.at.eu.org>, 183357@bugs.debian.org
Mon, 21 Feb 2005 20:58:36 +0100


On 2005-02-18 Tore Anderson <tore@debian.org> wrote:
[...]
>   Anyway:  Why don't we just simply check in the post installation
>  script of exim4-base if any of the problematic files from Woody's exim
>  package is present, and if they are not, make a symlink from "exim" to
>  "exim4" in /usr/sbin.  This way all new installations will get the
>  regular binary, and so will all upgrades that doesn't have the
>  problematic files from Woody's Exim.  The postinst could also be made
>  to print a little warning if the problematic files were detected.

>   The postrm would of course need to take care to delete this symlink,
>  too.
[...]

s/-base/-daemon/ and the postrm would need to be extra careful using
readlink, but on first glance it sounds doable.
          thanks, cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/