Univention Bugzilla – Bug 41315
Block UCS 4.0 upgrade if Postgres 8.4 is installed
Last modified: 2016-09-29 17:25:30 CEST
See Bug #40690. We should block the upgrade to UCS 4.0 if one updates from UCS 3.3 and Postgres 8.4 is used. The SDB article needs to be adjusted (http://sdb.univention.de/1292): 1. UCS 3.3 must be mentioned 2. The /var/lib/postgresql/9.1/main directory must be moved: [ -f /usr/sbin/univention-pkgdb-scan ] && chmod -x /usr/sbin/univention-pkgdb-scan service postgresql stop rm -rf /etc/postgresql/9.1 apt-get install --reinstall postgresql-9.1 pg_dropcluster 9.1 main --stop service postgresql start + test -e /var/lib/postgresql/9.1/main && mv /var/lib/postgresql/9.1/main /var/lib/postgresql/9.1/main.old pg_upgradecluster 8.4 main ucr commit /etc/postgresql/9.1/main/* chown -R postgres:postgres /var/lib/postgresql/9.1 service postgresql restart [ -f /usr/sbin/univention-pkgdb-scan ] && chmod +x /usr/sbin/univention-pkgdb-scan
The following command should be added to the SDB article: test "$(ucr get version/version)" = 3.3 && univention-install --yes univention-postgresql-9.1 Otherwise univention-postgresql-8.4 will be installed during the upgrade to UCS 4.1.
* ucs-4.0-0/base/univention-updater/script: r69461 added check_for_postgresql84 (copied to apt.knut.univention.de) * modified http://sdb.univention.de/1292)
Code review: OK Tests from 3.2: OK Tests from 3.3: OK
UCS 3.3 has been released: https://docs.software-univention.de/release-notes-3.3-0-en.html https://docs.software-univention.de/release-notes-3.3-0-de.html If this error occurs again, please use "Clone This Bug".