mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Bring forward ipsets restoration fix
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4908 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
bba2e84ae9
commit
c5b8f312dc
@ -5232,16 +5232,19 @@ __EOF__
|
||||
setcontinue OUTPUT
|
||||
fi
|
||||
|
||||
f=$(find_file ipsets)
|
||||
indent >&3 << __EOF__
|
||||
|
||||
if [ -f $f ]; then
|
||||
progress_message2 "Processing $f ..."
|
||||
save_progress_message "Restoring IPSETS..."
|
||||
save_command "ipset -U :all: :all:"
|
||||
save_command "ipset -F"
|
||||
save_command "ipset -X"
|
||||
save_command "ipset -R < $f"
|
||||
fi
|
||||
f=\$(find_file ipsets)
|
||||
|
||||
if [ -f \$f ]; then
|
||||
progress_message2 "Restoring IPSETS..."
|
||||
ipset -U :all: :all:
|
||||
ipset -F
|
||||
ipset -X
|
||||
ipset -R < \$f
|
||||
fi
|
||||
|
||||
__EOF__
|
||||
|
||||
append_file continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user