Update Icingaweb2

Wer Module wie Businessprocess oder ähnlich verwenden möchte, kommt um ein Update von Icingaweb2 nicht herum. Da ich beim OS auf Rockylinux 8.x setze, muss ich leider auf ein Update aus den offiziellen Repositories verzichten. Diverse Abhängigkeiten können nicht aufgelöst werden. Daher habe ich mir folgendermaßen selbst geholfen.

Das Wichtigste ist ein Backup für alle Fälle zu erstellen:

[root@localhost] cd /usr/share/icinga-php
[root@localhost]  tar czpf ipl.tar.gz ipl/ vendor/
[root@localhost]  mv ipl.tar.gz /root
[root@localhost]  mv /usr/share/icingaweb2 /root

Jetzt beginnen wir mit den Updates:

[root@localhost] INSTALL_PATH="/usr/share/icinga-php/ipl"
[root@localhost] INSTALL_VERSION="stable/0.10.1"
[root@localhost] git clone https://github.com/Icinga/icinga-php-library.git "$INSTALL_PATH" --branch "$INSTALL_VERSION"
[root@localhost] INSTALL_PATH="/usr/share/icinga-php/vendor"
[root@localhost] INSTALL_VERSION="stable/0.11.0"
[root@localhost] git clone https://github.com/Icinga/icinga-php-thirdparty.git "$INSTALL_PATH" --branch "$INSTALL_VERSION"
[root@localhost] cd /usr/share
[root@localhost] git clone https://github.com/Icinga/icingaweb2.git icingaweb2

Zu guter letzt werden die Module und Icons von der alten Installation kopiert:

[root@localhost] cp -rf /root/icingaweb2/modules/director /usr/share/icingaweb2/modules/
[root@localhost] cp -rf /root/icingaweb2/modules/graphite /usr/share/icingaweb2/modules/
[root@localhost] cp -rf /root/icingaweb2/modules/map /usr/share/icingaweb2/modules/
.
.
.
[root@localhost] cp -rf /root/icingaweb2/public/img/icons/* /usr/share/icingaweb2/public/img/icons/