Univention Bugzilla – Bug 29332
univention-actualise gibt Fehlerexitcodes nicht zurück
Last modified: 2018-04-14 13:51:21 CEST
univention-actualise gibt unter UCS 3.1 bei Fehlern in main() immer den Exitcode 0 zurück, auch wenn dort explizit sys.exit(EXITCODE) aufgerufen wird. Die Exception SystemExit wird außerhalb von main() abgefangen und der Exitcode nicht weitergereicht. Achtung: in univention-actualise gibt es immer noch die negierten Rückgabewerte: 0 ==> kein Update vorhanden / System ist aktuell 1 ==> Update vorhanden / System ist nicht aktuell +++ This bug was initially created as a clone of Bug #27171 +++ Im Init-Skript /etc/init.d/univention-maintenance wird ein "univention-actualise --check" aufgerufen, der aber nur auf Updates und nicht auf noch einzuspielende Pakete aus der Richtlinie prüft. Folgendes Beispiel geht daher nicht: - mit "univention-upgrade --noninteractive" und alle Updates einspielen - neue Richtlinien definieren, mit denen ein neues, zusätzliches Paket beim Shutdown installiert werden soll
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 3.1. UCS 3.1 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.