attempt to create the original set to ensure it exists before swap operation
otherwise it will crash on the very first run on new systems
This commit is contained in:
parent
1680830f91
commit
751c0dc403
@ -57,6 +57,7 @@ for url in $urls; do
|
||||
hash_size=$(expr $new_list_size / 2)
|
||||
|
||||
# start writing new set file
|
||||
echo "create ${set_name} hash:net family inet" >>"${new_set_file}"
|
||||
echo "create ${tmp_set_name} hash:net family inet hashsize ${hash_size} maxelem ${new_list_size}" >>"${new_set_file}"
|
||||
|
||||
# convert list of IPs to ipset statements
|
||||
|
Loading…
Reference in New Issue
Block a user