Fail on status >=400

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-02-08 23:19:19 +00:00
parent ad58a2b0fa
commit 445ad6aaff

View file

@ -25,7 +25,7 @@ fi
systemctl start mirrorlist2
sleep 15
curl -q -H mirrors.fedoraproject.org "http://localhost:18082/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s
curl -q -H mirrors.fedoraproject.org "http://localhost:18082/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
if [ $? != 0 ]; then
echo "ERROR: mirrorlist2 did not start correctly"
exit 1
@ -35,7 +35,7 @@ fi
systemctl restart mirrorlist1
sleep 15
curl -q -H mirrors.fedoraproject.org "http://localhost:18081/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s
curl -q -H mirrors.fedoraproject.org "http://localhost:18081/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
if [ $? != 0 ]; then
echo "ERROR: mirrorlist1 did not restart correctly"
exit 1