try 25 seconds
This commit is contained in:
parent
47874ab6d7
commit
dd014ea9f3
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ fi
|
||||||
systemctl start mirrorlist2
|
systemctl start mirrorlist2
|
||||||
echo "enable server mirror-lists/mirrorlist-local2" | nc -U /var/run/haproxy-admin >& /dev/null
|
echo "enable server mirror-lists/mirrorlist-local2" | nc -U /var/run/haproxy-admin >& /dev/null
|
||||||
|
|
||||||
sleep 20
|
sleep 25
|
||||||
curl -q -H mirrors.fedoraproject.org "http://localhost:18082/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
|
curl -q -H mirrors.fedoraproject.org "http://localhost:18082/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "ERROR: mirrorlist2 did not start correctly"
|
echo "ERROR: mirrorlist2 did not start correctly"
|
||||||
|
@ -41,7 +41,7 @@ systemctl restart mirrorlist1
|
||||||
sleep 1
|
sleep 1
|
||||||
echo "enable server mirror-lists/mirrorlist-local1" | nc -U /var/run/haproxy-admin >& /dev/null
|
echo "enable server mirror-lists/mirrorlist-local1" | nc -U /var/run/haproxy-admin >& /dev/null
|
||||||
|
|
||||||
sleep 20
|
sleep 25
|
||||||
curl -q -H mirrors.fedoraproject.org "http://localhost:18081/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
|
curl -q -H mirrors.fedoraproject.org "http://localhost:18081/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "ERROR: mirrorlist1 did not restart correctly"
|
echo "ERROR: mirrorlist1 did not restart correctly"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue