#!/bin/bash
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

HOSTS_SOSREPORT_EXTRACTED_DIR="/tmp/ovirt-log-collector-analyzer-hosts"
ANALYZER_VERSION="4.2.0"
ANALYZER_RELEASE="0.0.master"
ANALYZER_GITHEAD="afb79e3"

# Detect if we should enable software collection
if rpm -q rh-postgresql95-postgresql-server &> /dev/null; then
    INITDB_CMD="scl enable rh-postgresql95 -- initdb"
    PSQL_CMD="scl enable rh-postgresql95 -- psql"
    PG_CTL_CMD="scl enable rh-postgresql95 -- pg_ctl"
else
    INITDB_CMD="initdb"
    PSQL_CMD="psql"
    PG_CTL_CMD="pg_ctl"
fi
