Wiki-Quellcode von Nextcloud Upgrade
Version 1.1 von Tom Altenbrunn am 2024/10/25 15:40
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | Die Lösung für dieses Problem unter LD20 wird so sein, dass das vorhandene nextcloud-g1 Container auf Basis von jammy aktualisiert wird. Hier beschreibe ich grob das Vorgehen, wie man vorhandenen nextcloud-g1 Container neu aufbaut. | ||
2 | |||
3 | |||
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 | ||
9 | }}}((( | ||
10 | profile::lxc::host: | ||
11 | |||
12 | guests: nextcloud-g1: { ensure: running, release: jammy } | ||
13 | ))) | ||
14 | 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: | ||
15 | |||
16 | {{{ | ||
17 | }}} | ||
18 | |||
19 | {{{ | ||
20 | }}}root@puppeteer:/etc/logodidact # cat hiera/custom.d/nextcloud-g1.yaml((( | ||
21 | php::globals::php_version: '8.1' | ||
22 | |||
23 | php::package_prefix: 'php8.1-' | ||
24 | |||
25 | ld_base::fixes::php::historic_php_versions: | ||
26 | |||
27 | - '8.3' | ||
28 | ))) | ||
29 | 1. root@ldhost:~~ # systemctl stop lxc@nextcloud-g1.service | ||
30 | 1. root@ldhost:~~ # lxc-destroy -n nextcloud-g1 -f | ||
31 | 1. root@ldhost:~~ # prun | ||
32 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=27.1.9 | ||
33 | 1. root@nextcloud-g1:~~ # prun | ||
34 | 1. root@nextcloud-g1:~~ # apt install ~-~-reinstall ld-nextcloud=28.0.5 | ||
35 | 1. root@nextcloud-g1:~~ # prun | ||
36 | 1. root@nextcloud-g1:~~ # apt upgrade -y | ||
37 | 1. root@nextcloud-g1:~~ # prun | ||
38 | 1. Upgrade Anpassungen für nextcloud-g1 entfernen | ||
39 | 1. root@nextcloud-g1:~~ # prun # eventuell 2x notwendig wegen PHP upgrade |