ConSol-Monitoring / omd

OMD - Open Monitoring Distribution Labs Edition.
http://omd.consol.de
GNU General Public License v2.0
169 stars 34 forks source link

worker.cfg is overwritten when updating from 4.60 to 5.00 #145

Closed jstark1 closed 1 year ago

jstark1 commented 1 year ago

it looks like /etc/mod-gearman/worker.cfg will be overwritten with default settings on update.

There is no indication of this in the update log.

cat omd-upgrade.log | grep "mod-gearman\|labs"
2022-12-28 17:17:34 - Updating site 'XXX' from version 4.60-labs-edition to 5.00-labs-edition...
 * Installed dir  etc/mod-gearman/worker.cfg.d
Installed default file of version 5.00-labs-edition.
 * Updated        etc/mod-gearman/server.cfg
 * Installed file etc/mod-gearman/worker.cfg.d/custom.cfg
sni commented 1 year ago

how did you start the update?

jstark1 commented 1 year ago

omd -f -V 5.00-labs-edition update --conflict=install

sni commented 1 year ago

conflict=install means exactly that. It installs the new version in case of a conflict. If you start it without force and conflict option, omd would have asked you what to do.

jstark1 commented 1 year ago

sure, but there could be an output like

* Installed file etc/mod-gearman/worker.cfg (forced)

sni commented 1 year ago

i'll see what i can do. Should be doable.

sni commented 1 year ago

Output has been improved so it should be more visible now