Fix packaging test to only run lsb_release if it exists
@@ -87,11 +87,13 @@ setup() {
# Always AssumeMP on RHEL.
# - Resolves: rhbz#1381990
#
+ if [ -x "$(command -v lsb_release)" ]; then
# Here we set the "-XX:-AssumeMP" option to false again:
lsb_release=$(lsb_release -i)
if [[ "$lsb_release" =~ "CentOS" ]] || [[ "$lsb_release" =~ "OracleServer" ]]; then
echo "-XX:-AssumeMP" >> $ESCONFIG/jvm.options
fi
+ fi
systemctl start elasticsearch.service
wait_for_elasticsearch_status
