Wiki-Quellcode von Nextcloud Upgrade
Version 1.4 von Tom Altenbrunn am 2024/11/04 11:56
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.2 | 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 | |||
![]() |
1.1 | 4 | 1. ldupdate im puppeteer => Update auf ld-puppet10 in Version 1.6.x |
5 | 1. root@puppeteer:~~ # puppet-master-remove-client nextcloud-g1 | ||
6 | 1. Release von nextcloud-g1 auf jammy ändern: | ||
7 | |||
8 | {{{root@puppeteer:~ # cat /etc/logodidact/hiera/custom.d/ldhost.yaml | ||
![]() |
1.2 | 9 | }}} |
10 | |||
11 | ((( | ||
![]() |
1.1 | 12 | profile::lxc::host: |
13 | |||
14 | guests: nextcloud-g1: { ensure: running, release: jammy } | ||
15 | ))) | ||
![]() |
1.2 | 16 | |
![]() |
1.1 | 17 | 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: |
18 | |||
19 | {{{ | ||
20 | }}} | ||
21 | |||
![]() |
1.2 | 22 | root@puppeteer:/etc/logodidact # cat hiera/custom.d/nextcloud-g1.yaml |
23 | |||
24 | ((( | ||
![]() |
1.1 | 25 | php::globals::php_version: '8.1' |
26 | |||
27 | php::package_prefix: 'php8.1-' | ||
28 | |||
29 | ld_base::fixes::php::historic_php_versions: | ||
30 | |||
![]() |
1.2 | 31 | - '8.3' |
![]() |
1.1 | 32 | ))) |
![]() |
1.2 | 33 | |
![]() |
1.1 | 34 | 1. root@ldhost:~~ # systemctl stop lxc@nextcloud-g1.service |
35 | 1. root@ldhost:~~ # lxc-destroy -n nextcloud-g1 -f | ||
36 | 1. root@ldhost:~~ # prun | ||
37 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=27.1.9 | ||
38 | 1. root@nextcloud-g1:~~ # prun | ||
39 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=28.0.5 | ||
40 | 1. root@nextcloud-g1:~~ # prun | ||
41 | 1. root@nextcloud-g1:~~ # apt upgrade -y | ||
42 | 1. root@nextcloud-g1:~~ # prun | ||
43 | 1. Upgrade Anpassungen für nextcloud-g1 entfernen | ||
44 | 1. root@nextcloud-g1:~~ # prun # eventuell 2x notwendig wegen PHP upgrade |