The RPM preinstall script is checking if the system-model.cfg.xml file is already present, and if it is, it checks if it contains the dist-datastore filter from Repose 2. If the file is not present, it is assumed this is the first time Repose is being installed on the host and the "repose" user is created.
This is a problem if the user puts their configuration on the host before installing Repose for the first time. Although the installer will succeed, the config files will be owned by root, and more importantly, Repose won't be able to start up since the "repose" user doesn't exist.
The following error occurs:
The issue is in this file: repose-aggregator/artifacts/src/config/scripts/preinst-rpm
Handy link: preinst-rpm
- The "repose" user and group should still be created (if necessary) even if pre-existing Repose config files are detected.