Re: prerm failed for scanlogd?
Dear Friends,
> This is a bit strange, since I do not have a prerm script (nor a postinst or
> a postrm). I know debhelper adds some scripts itself, but they should not fail?
I tracked down the problem. It's quite easy. I do not have a prerm,postrm,
preinst, postinst script. debhelper creates a script that looks like this:
--------------------------------8<-----------------------------------------
# Automatically added by dh_installdocs
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/scanlogd ]; then
rm -f /usr/doc/scanlogd
fi
# End automatically added section
# Automatically added by dh_installinit
/etc/init.d/scanlogd stop
# End automatically added section
---------------------------------8<------------------------------------------
If there is no prerm, it just uses this one. But this is sh, I use tcsh.
My solution is to add a prerm file, that has a "#!/bin/sh" on top.
What do you think? Is this a bug in debhelper? Or is it documented somewhere?
bye
Michael
P.S. I use debhelper 2.0.88.
--
GPG Fingerprint = EA71 B296 4597 4D8B 343E 821E 9624 83E1 5662 C734
/"\ o
\ / ASCII RIBBON CAMPAIGN /|\
X AGAINST HTML MAIL >>
/ \ o
Reply to: