Univention Bugzilla – Bug 55201
Update to UCS 5.0-0 fails due to "empty" fetchmailrc with univention-ox-fetchmail installed
Last modified: 2023-09-30 07:26:42 CEST
When univention-ox-fetchmail is installed, the update to UCS 5 may fail, leaving the server package state inconsistent. The following was implemented into the UCS 5.0-0 preup.sh, with a check for univention-fetchmail. We also need the check for the ox specific package univention-ox-fetchmail, the same error occurs with that package. +++ This bug was initially created as a clone of Bug #52923 +++ In the postinst script of fetchmail, the fetchmail service is restarted automatically during the update to UCS 5.0-0. If there is no "poll" entry in /etc/fetchmailrc, the restart of the fetchmail polling daemon fails and unfortunately the fetchmail.postinst also fails. This causes an abortion of the update to UCS 5.0-0. To prevent this problematic behaviour, in preup.sh the fetchmail.service stopped and then disabled via the corresponding UCR variable: ucr set fetchmail/autostart=no The old value of "fetchmail/autostart" is saved in the UCR variable "fetchmail/autostart/update500" and restored in postup.sh. Also a restart of fetchmail.service is attempted in postup.sh.