#!/bin/bash # this script runs in the rpm_test environment . /etc/os-release if [ "$VERSION" == "12-SP4" ] || [ "$VERSION" == "12-SP5" ]; then echo "Can't run test on sles/12.4 or sles/12.5, php packages are broken" exit 0 fi SCRIPT_HOME="$(dirname "$(readlink -f "$0")")" if ! $SCRIPT_HOME/prepare_test.sh; then exit 1 fi sleep 10 output=`mktemp` if curl -v http://127.0.0.1/icingaweb2/authentication/login -o "$output"; then if grep -q '