On Fri, Apr 11, 2008 at 12:13 PM, Thomas Vaughan <[EMAIL PROTECTED]>
wrote:
>
> > Your thoughts on the fix would also be appreciated.
>
> I'm no expert on this stuff, but your fix seems consistent with the
> documentation on the man page for 'update-rc.d'.
When I look closely at the man page, I find:
If any files /etc/rc<runlevel>.d/[SK]??<name> already exist then
update-rc.d does nothing. The program was written this way so that
it will never change an existing configuration, which may have been
customized by the system administrator. The program will only
install links if none are present, i.e., if it appears that the
service has never been installed before.
I know that it's more work, but, in the spirit of the man page---and
with a view toward the highest standard of quality---you might consider
implementing in the postinst script the right Bourne shell code to
implement the following pseudocode, which would take the place of the
line that you inserted, which always forces removal of old links:
if upgrading from odccm version < 0.11-3
if links are as the old package installed them
force removal of old links
else if links are not as odccm-0.11-3 would install them
complain about potentially bad local modification of links
suggest at least temporary manual removal of links
administrator might replace his links after installation if need be
exit with error from postinst
endif
endif
--
Thomas E. Vaughan
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]