I install icingaweb2 from the sources and unpack it with version information to /usr/share/
For example /usr/share/icingaweb2-2.7.3
To test an update I then create a symlink to /usr/share/icingaweb2
If I now activate modules with icingacli, the symlinks do not point to /usr/share/icingaweb2/modules/
but to /usr/share/icingaweb2-2.7.3/modules
In case of an up- or downgrade these links are still active and point to possibly wrong versions.
# icingacli --version
Icinga Web 2 2.7.3
Git Commit 06cabfe8ba28cf545a42c92f25484383191a4e51
PHP Version 7.3.11-0ubuntu0.19.10.4
MODULE VERSION
batman-dark master
monitoring 2.7.3
unicorn 1.0.2
# tree /etc/icingaweb2
.
├── authentication.ini
├── config.ini
├── dashboards
├── enabledModules
│ ├── batman-dark -> /usr/share/icingaweb2-2.8.0-rc1/modules/batman-dark
│ ├── monitoring -> /usr/share/icingaweb2/modules/monitoring
│ └── unicorn -> /usr/share/icingaweb2-2.8.0-rc1/modules/unicorn
├── groups.ini
├── modules
│ └── monitoring
│ ├── backends.ini
│ ├── commandtransports.ini
│ └── config.ini
├── resources.ini
└── roles.ini
7 directories, 8 files