When upgrading OpenNMS, if you have set RUNAS to something other than opennms, the installer prints a warning and leaves directory ownership intact.
It does not leave directory ownership intact for /opt/opennms/logs (or /var/log/opennms), setting ownership to opennms:opennms even if RUNAS is set to a different user.
Steps to reproduce:
- Install an OpenNMS that's older than the current release.
- Configure RUNAS to a user that's not opennms.
- Set ownership for all OpenNMS files to that user.
- Upgrade OpenNMS.
If RUNAS is set to a value other than opennms, the /opt/opennms/logs and /var/log/opennms directory ownership should not be changed, or should be set to the configured RUNAS user.
/opt/opennms/logs (or /var/log/opennms) ownership is changed to opennms:opennms regardless of the value of RUNAS.