On Wed, Feb 16, 2011 at 11:08:08PM +0100, Max Kellermann wrote:
> What do you expect the script to do?

I don't mind the init script failing, but not when called from postinst (and
thus breaking an upgrade).

> You are using a (now-)invalid configuration file which you did not
> migrate during upgrade, and you set START_MPD=true in
> /etc/default/mpd.
> 
> Do you want the postinst script to ignore such a configuration error?

How about displaying a warning and not invoking the init script from postinst,
if the deprecated option still exists in mpd.conf?

if test -f /etc/mpd.conf && \
   grep -q '^\s*error_file\s*=' /etc/mpd.conf'; then
     echo ...
     exit 0
fi

-- 
Every great idea is worthless without someone to do the work. --Neil Williams



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to