Univention Bugzilla – Bug 51880
block update to next version if postup.sh failed
Last modified: 2020-08-26 16:35:39 CEST
The update to the next version should be blocked if the previous upgrade failed, e.g. because the postup.sh execution failed. (postup.sh never fails, but the team/PO wants this...) Additionally a link to an SDB article would be helpful. The preup.sh should check the status. Instead of setting UCR variables which describe the current updater step we can use the existing /var/lib/univention-updater/univention-updater.status which looks like: """ status=FAILED errorsource=POSTUP """ or "status=DONE". This change should be done because Bug #46465 changed that version/version is set before postup.sh is executed. So when the postup.sh fails the version/version is not the old version and one can simply upgrade to the next version instead if repeating the update. In UCS 5 the repository structure changes so that when we would revert version/version to the old version, the sources.list would be build with the new pool structure which is not compatible with version=4.4.
univention-updater.yaml f9f6721a5421 | YAML Bug #51880 univention-updater (14.0.2-17) 633a67967953 | Bug #51880: fix typo 449a36fb64e8 | Bug #51880: block upgrade if previous postup.sh failed
Please hide the grep error message if univention-updater.status does not exist: HINT: Please check the release notes carefully BEFORE updating to UCS : English version: https://docs.software-univention.de/release-notes--en.html German version: https://docs.software-univention.de/release-notes--de.html Please also consider documents of following release updates and 3rd party components. Do you want to continue [Y/n]? Checking for space on /var/cache/apt/archives: OK Checking for space on /boot: OK Checking for space on /: OK Checking for package status: OK Checking LDAP schema: OK grep: /var/lib/univention-updater/univention-updater.status: Datei oder Verzeichnis nicht gefunden Starting update process, this may take a while. Check /var/log/univention/updater.log for more information.
univention-updater (14.0.2-18) 2ec8b7aa64eb | Bug #51880: ignore not existing status file
The status file is already overwritten in the preup.sh. Therefore the logic has been move into univention-updater. univention-updater (14.0.2-19) 78261412a39a | Bug #51880: move logic to univention-updater
Ok works now [4.4-5 799148c049] Bug #51880: Update dev docu [4.4-5 d20a7e9643] Bug #51880: yaml
<https://errata.software-univention.de/#/?erratum=4.4x722>