Wiki-Quellcode von Nextcloud Upgrade
Version 2.2 von Tom Altenbrunn am 2024/11/04 14:41
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | Die Ubuntu-Basis der Nextcloud unter LD2.0 benötigt eine aktuellere Version als die derzeit genutzte Version 16.0.4 (Xenial Xerus), damit neuere Nextcloud-und PHP-Versionen installiert werden können. Im Nachfolgenden wird zunächst die Basis des nextcloud-g1 Containers auf Version 22.04.5 (Jammy) angehoben und anschließend die Komponenten Nextcloud, sowie PHP aktualisiert. | ||
2 | |||
3 | |||
4 | Server | ||
5 | |||
6 | |||
7 | |||
8 | 1. ldupdate im puppeteer => Update auf ld-puppet10 in Version 1.6.x | ||
9 | 1. root@puppeteer:~~ # puppet-master-remove-client nextcloud-g1 | ||
10 | 1. Release von nextcloud-g1 auf jammy ändern: | ||
11 | |||
12 | {{{root@puppeteer:~ # cat /etc/logodidact/hiera/custom.d/ldhost.yaml | ||
13 | }}} | ||
14 | |||
15 | ((( | ||
16 | profile::lxc::host: | ||
17 | |||
18 | guests: nextcloud-g1: { ensure: running, release: jammy } | ||
19 | ))) | ||
20 | |||
21 | 1. Um das Upgrade von Version 26 bis auf Version 29 erfolgreich durchführen zu können braucht man für die Dauer des Upgrades folgende Anpassungen für nextcloud-g1: | ||
22 | |||
23 | {{{ | ||
24 | }}} | ||
25 | |||
26 | root@puppeteer:/etc/logodidact # cat hiera/custom.d/nextcloud-g1.yaml | ||
27 | |||
28 | ((( | ||
29 | php::globals::php_version: '8.1' | ||
30 | |||
31 | php::package_prefix: 'php8.1-' | ||
32 | |||
33 | ld_base::fixes::php::historic_php_versions: | ||
34 | |||
35 | - '8.3' | ||
36 | ))) | ||
37 | |||
38 | 1. root@ldhost:~~ # systemctl stop lxc@nextcloud-g1.service | ||
39 | 1. root@ldhost:~~ # lxc-destroy -n nextcloud-g1 -f | ||
40 | 1. root@ldhost:~~ # prun | ||
41 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=27.1.9 | ||
42 | 1. root@nextcloud-g1:~~ # prun | ||
43 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=28.0.5 | ||
44 | 1. root@nextcloud-g1:~~ # prun | ||
45 | 1. root@nextcloud-g1:~~ # apt upgrade -y | ||
46 | 1. root@nextcloud-g1:~~ # prun | ||
47 | 1. Upgrade Anpassungen für nextcloud-g1 entfernen | ||
48 | 1. root@nextcloud-g1:~~ # prun # eventuell 2x notwendig wegen PHP upgrade |