Fail on status >=400
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
ad58a2b0fa
commit
445ad6aaff
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue