Also drain local2
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
790b229039
commit
2160e9be1e
1 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,7 @@ fi
|
|||
|
||||
# start mirrorlist2 (old pkl and see that it's processing ok)
|
||||
systemctl start mirrorlist2
|
||||
echo "enable server mirror-lists/mirrorlist-local2" | nc -U /var/run/haproxy-admin
|
||||
|
||||
sleep 15
|
||||
curl -q -H mirrors.fedoraproject.org "http://localhost:18082/metalink?repo=rawhide&arch=x86_64" -o/dev/null -s -f
|
||||
|
@ -50,5 +51,13 @@ fi
|
|||
# copy new pkl to mirrorlist2
|
||||
cp -a /srv/mirrorlist/data/mirrorlist1/* /srv/mirrorlist/data/mirrorlist2/
|
||||
|
||||
# Drain mirrorlist2
|
||||
echo "disable server mirror-lists/mirrorlist-local2" | nc -U /var/run/haproxy-admin
|
||||
sleep 1
|
||||
|
||||
# stop mirrorlist2
|
||||
systemctl stop mirrorlist2
|
||||
|
||||
# Now that it's stopped, we can re-enable it. That makes sure that if anything went wrong, we
|
||||
# still have it enabled
|
||||
echo "enable server mirror-lists/mirrorlist-local2" | nc -U /var/run/haproxy-admin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue