Description
There are some logic defects in the following script(/security-admin/contrib/solr_for_audit_setup/setup.sh):
sudo chown -R $SOLR_USER:$SOLR_USER $SOLR_INSTALL_FOLDER
set_ownership $SOLR_USER $SOLR_USER $SOLR_INSTALL_FOLDER
It will cause invalid group error if the group does not exist.
And these logics do not support the case where the user name is different with the user group.
We should use SOLR_GROUP to resolve these logic defects. The new code is as following:
sudo chown -R $SOLR_USER:$SOLR_GROUP $SOLR_INSTALL_FOLDER
set_ownership $SOLR_USER $SOLR_GROUP $SOLR_INSTALL_FOLDER
And set a value for SOLR_GROUP alone.