If mirrorlist2 is empty, populate
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
6ca79cbfa3
commit
cf97e949ad
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,11 @@
|
|||
|
||||
# Initial expected state is mirrorlist1 running, mirrorlist2 not running and new pkl
|
||||
|
||||
if [ ! -f /srv/mirrorlist/data/mirrorlist2/global_netblocks.txt ];
|
||||
then
|
||||
cp /srv/mirrorlist/data/mirrorlist1/* srv/mirrorlist/data/mirrorlist2/
|
||||
fi
|
||||
|
||||
## Check that pkl is newer than old pkl
|
||||
if [ /srv/mirrorlist/data/mirrorlist1/mirrorlist_cache.pkl -nt /srv/mirrorlist/data/mirrorlist2/mirrorlist_cache.pkl ]; then
|
||||
# new pkl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue