mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-13 21:27:00 +02:00
Don't make the restore-base executable
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1291 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d58ef6d813
commit
38ead4778b
@ -5353,9 +5353,9 @@ define_firewall() # $1 = Command (Start or Restart)
|
||||
|
||||
save_command 'iptables-restore << EOF'
|
||||
|
||||
mv -f /var/lib/shorewall/restore-$$ /var/lib/shorewall/restore-base
|
||||
# 'shorewall save' appends the iptables-save output and 'EOF'
|
||||
|
||||
chmod +x /var/lib/shorewall/restore-base
|
||||
mv -f /var/lib/shorewall/restore-$$ /var/lib/shorewall/restore-base
|
||||
|
||||
}
|
||||
|
||||
|
@ -971,6 +971,7 @@ case "$1" in
|
||||
if iptables-save >> /var/lib/shorewall/restore-$$ ; then
|
||||
echo EOF >> /var/lib/shorewall/restore-$$
|
||||
mv -f /var/lib/shorewall/restore-$$ /var/lib/shorewall/restore
|
||||
chmod +x /var/lib/shorewall/restore
|
||||
echo " Currently-running Configuration Saved"
|
||||
else
|
||||
rm -f /var/lib/shorewall/restore-$$
|
||||
|
Loading…
x
Reference in New Issue
Block a user