Univention Bugzilla – Bug 33194
Release updates via policy not possible
Last modified: 2014-03-19 09:41:36 CET
It is not possible to install UCS release updates via the release policy. At least the --noninteractive switch is missing for the univention-updater command.
r47636 | Bug #33194: Updater: Fix output messages r47635 | Bug #33194: updater: Force --noninteractive mode for maintenance mode r47633 | Bug #33194: Updater: Extend copyright to 2014. univention-updater_9.0.38-10.1245.201402042222 r47637 | Bug #33189,33194: Updater release policy
(In reply to Philipp Hahn from comment #1) > r47636 | Bug #33194: Updater: Fix output messages Code: OK > r47635 | Bug #33194: updater: Force --noninteractive mode for maintenance > mode Code: Fail: s/noninteracive/noninteractive/ > r47633 | Bug #33194: Updater: Extend copyright to 2014. Code: OK > univention-updater_9.0.38-10.1245.201402042222 > r47637 | Bug #33189,33194: Updater release policy Tests: Failed univention-updater does not know the --noninteractive flag. I think you have to set the environment variable UCS_FRONTEND to noninteractive. YAML: OK
(In reply to Stefan Gohmann from comment #2) > Code: Fail: > s/noninteracive/noninteractive/ Fixed. > > r47637 | Bug #33189,33194: Updater release policy > > Tests: Failed > univention-updater does not know the --noninteractive flag. I think you have > to set the environment variable UCS_FRONTEND to noninteractive. "univention-updater --noninteractive" added to have the code in one place. The </dev/null is sometimes needed, since programs still try to read from STDIN. 3.2-0: r47725 | Bug #33189,#33194: updater --noninteractive univention-updater_9.0.38-11.1247.201402111139 YAML: r47727 | Bug #33189,#33194: updater --noninteractive YAML 3.2-1: r47726 | Bug #33189,#33194: updater --noninteractive # ucr set repository/online/server=apt.knut.univention.de # /usr/lib/univention-directory-policy/univention-policy-maintenance # cat /etc/cron.d/univention-maintenance# cron job for update PATH=/sbin:/usr/sbin:/usr/bin:/bin 5 * * * * root /usr/sbin/jitter 600 /usr/share/univention-updater/univention-updater local --updateto=3.2-1 --silent --noninteractive; /usr/share/univention-updater/univention-actualise --dist-upgrade --silent # /usr/share/univention-updater/univention-updater net --updateto=3.2-1 --noninteractive ... WARNING: You are logged in using SSH -- this may interrupt the update and result in an inconsistent system! # xargs -0n1 echo </proc/`pgrep -f preup`/environ | grep FRONT UCS_FRONTEND=noninteractive # /usr/share/univention-updater/univention-updater net --updateto=3.2-1 ... Do you want to continue [Y/n]? n
Fix /etc/init.d/univention-maintenance to not print the message about running the updater, when the release update is not allowed by policy. 3.2-0: r47744 | Bug #33194: updater: maintenance policy YAML: r47747 | Bug #33194: updater: maintenance policy YAML 3.2-1: r47746 | Bug #33194: updater: maintenance policy
YAML: OK Code: OK Tests: OK
http://errata.univention.de/ucs/3.2/55.html
*** Bug 23350 has been marked as a duplicate of this bug. ***