[csw-maintainers] Migrating config files from /opt/csw/etc to /etc/opt/csw during package update

Trygve Laugstøl trygvis at opencsw.org
Sun Sep 13 22:24:56 CEST 2009


Dagobert Michelsen wrote:
> Hi Phil,
> 
> Am 11.09.2009 um 18:22 schrieb Philip Brown:
>> On Thu, Sep 10, 2009 at 11:41 AM, Maciej (Matchek) Blizinski
>> <maciej at opencsw.org> wrote:
>>>
>>> There another case to consider: the case when the configuration files
>>> can't be automatically migrated. Should the preinstall script abort
>>> the installation? (Can it really abort the installation?) Any other
>>> ideas?
>>
>> I did already give my own opinion on this one; yes it should stop the
>> install. and yes it has the power to do that. simply exit with
>> non-zero status.
> 
> Let me remind you that this is contrary to what you advised me on
> transitioning Mantis:
> 
> Am 21.03.2008 um 22:08 schrieb Philip Brown:
>> On Fri, Mar 21, 2008 at 09:56:16PM +0100, Dagobert Michelsen wrote:
>>> No. If someone has a modified config-file I'll need to take
>>> care of it or the symlink in htdocs could not be created.
>>> This must be tested and this all takes some time.
>>>
>>> If you say I should just move the stuff over I'll it right
>>> now, but this is not a smooth transitions for users.
>>
>> yeah. just move it over.
>>
>> it would be nice if you just had a quicky postinstall check for,
>> "was there an older install? if so, post a warning message for 30 sec"
>> but that's about it.
>> It's too messy otherwise.
> 
> And I think it was the right thing you advised me: Make the transition
> automatic if possible and stop if it can't be migrated safely.

If it is obvious where it was and where it should be moved to (like 
mpd's mpd.conf file), just move it. Otherwise just fail.

--
Trygve



More information about the maintainers mailing list