[horde] imp/config/hooks.php overwritten on upgrade of HGWE

Andy Dorman adorman at ironicdesign.com
Tue Mar 22 13:31:19 UTC 2016


On 03/22/2016 07:52 AM, Arjen de Korte wrote:
> Citeren Andy Dorman <adorman at ironicdesign.com>:
>
>> On 03/22/2016 06:05 AM, Arjen de Korte wrote:
>>> Yesterdays upgrade rewrote my imp/config/hooks.php file - again.
>>> Assuming the contents of the bundled imp/config/hooks.php file is vital
>>> for HGWE, could this file be generated by the webmail-install script in
>>> a way that doesn't overwrite it when it already exists?
>>>
>>
>> Just curious, is there some reason you do not use
>> imp/config/hooks.local.php ?
>
> Yes. This will cause errors on the next update, so this is only half a
> solution:
>
>      http://lists.horde.org/archives/horde/Week-of-Mon-20120430/044164.html
>
> Files for which a *.dist version is distributed should not be touched,
> but the imp/config/hooks.php is an exception here (see the remaining
> messages in this thread, where it is explained why). So far I have
> prevented Horde from touching this file by setting the immutable bit,
> but apparently I forgot to set it the last time I modified the contents.
>

Ah, thanks for the reminder.

We use the debian distribution (thanks to Mathieu Parent) and 
hooks.local.php which is basically hooks.php.dist modified with our 
local hook code.  Debian updates hooks.php.dist.  So when we update I 
look to see if there were any changes that need to be merged into our 
hooks.local.php.  Not an ideal process by any means.

-- 
Andy Dorman



More information about the horde mailing list