Loading
nixos/librenms: regenerate caches after every package change
The LibreNMS cache may contain paths to the old package and may break when the old package is removed. So it is not enough to clear the cache only on version updates, as the package will also change when build inputs change. This commit updates the setup script to regenerate the cache on every package change. In addition, it now only performs migrations when the package version has changed, since the migrations only change on version updates and don't need to be applied on every package change.