mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 23:57:14 +02:00
Pretty up restore base file
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1358 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
c49e9deeb2
commit
448c3ba609
@ -5496,7 +5496,9 @@ define_firewall() # $1 = Command (Start or Restart)
|
|||||||
[ -d /var/lib/shorewall ] || mkdir -p /var/lib/shorewall
|
[ -d /var/lib/shorewall ] || mkdir -p /var/lib/shorewall
|
||||||
|
|
||||||
echo '#bin/sh' > /var/lib/shorewall/restore-$$
|
echo '#bin/sh' > /var/lib/shorewall/restore-$$
|
||||||
save_command "# Restore base file generated $(date)"
|
save_command "#"
|
||||||
|
save_command "# Restore base file generated by Shorewall $version - $(date)"
|
||||||
|
save_command "#"
|
||||||
save_command ". /usr/share/shorewall/functions"
|
save_command ". /usr/share/shorewall/functions"
|
||||||
|
|
||||||
save_command "MODULESDIR=\"$MODULESDIR\""
|
save_command "MODULESDIR=\"$MODULESDIR\""
|
||||||
@ -5558,7 +5560,7 @@ define_firewall() # $1 = Command (Start or Restart)
|
|||||||
|
|
||||||
save_command 'iptables-restore << __EOF__'
|
save_command 'iptables-restore << __EOF__'
|
||||||
|
|
||||||
# 'shorewall save' appends the iptables-save output and 'EOF'
|
# 'shorewall save' appends the iptables-save output and '__EOF__'
|
||||||
|
|
||||||
mv -f /var/lib/shorewall/restore-$$ /var/lib/shorewall/restore-base
|
mv -f /var/lib/shorewall/restore-$$ /var/lib/shorewall/restore-base
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user