# Coolwsd.xml keeps getting rewritten on updates

**URL:** <https://forum.collaboraonline.com/t/coolwsd-xml-keeps-getting-rewritten-on-updates/1938>\
**Category:** Installation & Configuration\
**Created:** [July 6, 2023, 1:59pm UTC](https://forum.collaboraonline.com/t/coolwsd-xml-keeps-getting-rewritten-on-updates/1938 "2023-07-06T13:59:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [July 6, 2023, 1:59pm UTC](https://forum.collaboraonline.com/t/coolwsd-xml-keeps-getting-rewritten-on-updates/1938/1 "2023-07-06T13:59:27Z")

</div>

I have a working copy of CODE in which I have several domains that can use this with alias\_groups as mode groups with several of the following

```auto
<group> 
<host allow="true" desc="hostname to allow or deny.">https://domain.ca</host> 
</group>

```

All those domains are working and can use it. However, every time CODE needs to be updated, this files gets overwritten. I assume coolwsd.xml is subject to overwrites for update purposes

Lucky I learned my lesson and keep a copy of this. But it is not practical. There must be a solution out there I just can’t find?

For instance, fail2ban has a jail.local file that is not subject to overwrites. Is there such a thing for this?

COOLWSD version:  
23.05.1.2  
git hash:  
[[a708901](https://github.com/CollaboraOnline/online/commit/a70890167420bd795f5f3d0a50534b88f481be0b)]

---

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [June 21, 2024, 4:23pm UTC](https://forum.collaboraonline.com/t/coolwsd-xml-keeps-getting-rewritten-on-updates/1938/2 "2024-06-21T16:23:57Z")

</div>

This problem occurs if you have virtualmin installed and are doing updates through its web interface. It selects the default behaviour when the apk manager asks what to do with the Configuration file

```auto
Configuration file '/etc/coolwsd/coolwsd.xml'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : start a shell to examine the situation
 The default action is to keep your current version.
*** coolwsd.xml (Y/I/N/O/D/Z) [default=N] ? Installing new version of config file /etc/coolwsd/coolwsd.xml ...
Setting up code-brand (24.04-8) ...
Processing triggers for man-db (2.8.5-2+deb10u1) ...
Processing triggers for libc-bin (2.28-10+deb10u3) ...
Updating coolwsd systemplate

```

> <https://github.com/virtualmin/virtualmin-gpl/issues/612>
>
> I have installed \[CODE\](https://www.collaboraoffice.com/code/) 
> 
> This works gr…eat accept for one problem, when it does a major package update ( that happens a lot ), it overwrites the default config file. I work around this by keeping my old config in backup.
> 
> I noticed this when doing the update through virtualmin
> 
> Setting up coolwsd (23.05.2.2-1) ...
> Installing new version of config file /etc/coolwsd/coolkitconfig.xcu ...
> 
> Configuration file '/etc/coolwsd/coolwsd.xml'
> ==\> Modified (by you or by a script) since installation.
> ==\> Package distributor has shipped an updated version.
> What would you like to do about it ? Your options are:
> Y or I : install the package maintainer's version
> N or O : keep your currently-installed version
> D : show the differences between the versions
> Z : start a shell to examine the situation
> The default action is to keep your current version.
> \*\*\* coolwsd.xml (Y/I/N/O/D/Z) \[default=N\] ? Installing new version of config file /etc/coolwsd/coolwsd.xml ...
> 
> Is virtualmin making this decisions for me? It is not selecting the default action, so something is being decided here. Would there be a config somewhere to change this selection behaviour?
> 
> 
> 
> I found an old thread that looked close to related to this
> https://archive.virtualmin.com/node/21921

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [June 27, 2024, 3:50am UTC](https://forum.collaboraonline.com/t/coolwsd-xml-keeps-getting-rewritten-on-updates/1938/3 "2024-06-27T03:50:36Z")

</div>

Great @gstlouis ! Thanks for coming back to this topic and posting your solution.

(I see a lot of helpful debug discussion was going on in that linked Github topic too.)

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [August 6, 2024, 10:45am UTC](https://forum.collaboraonline.com/t/coolwsd-xml-keeps-getting-rewritten-on-updates/1938/4 "2024-08-06T10:45:36Z")

</div>


