Shorewall[6]/Makefile: remove extra restore, shorewall does that automatically

Signed-off-by: Tuomo Soini <tis@foobar.fi>
This commit is contained in:
Tuomo Soini 2016-02-12 18:17:37 +02:00
parent 660ae09f4f
commit daa016d2a3
2 changed files with 0 additions and 4 deletions

View File

@ -2,7 +2,6 @@
# Shorewall -- /etc/shorewall/Makefile # Shorewall -- /etc/shorewall/Makefile
# #
# Reload Shorewall if config files are updated. # Reload Shorewall if config files are updated.
# If reloading fails, restore old settings.
SWBIN ?= /sbin/shorewall -q SWBIN ?= /sbin/shorewall -q
CONFDIR ?= /etc/shorewall CONFDIR ?= /etc/shorewall
@ -16,7 +15,6 @@ $(SWSTATE): $(CONFDIR)/*
if [ $$? -eq 0 ]; then \ if [ $$? -eq 0 ]; then \
$(SWBIN) save >/dev/null; \ $(SWBIN) save >/dev/null; \
else \ else \
$(SWBIN) restore >/dev/null 2>&1; \
echo "$${RESULT}" >&2; \ echo "$${RESULT}" >&2; \
false; \ false; \
fi fi

View File

@ -2,7 +2,6 @@
# Shorewall6 -- /etc/shorewall6/Makefile # Shorewall6 -- /etc/shorewall6/Makefile
# #
# Reload Shorewall6 if config files are updated. # Reload Shorewall6 if config files are updated.
# If reloading fails, restore old settings.
SWBIN ?= /sbin/shorewall6 -q SWBIN ?= /sbin/shorewall6 -q
CONFDIR ?= /etc/shorewall6 CONFDIR ?= /etc/shorewall6
@ -16,7 +15,6 @@ $(SWSTATE): $(CONFDIR)/*
if [ $$? -eq 0 ]; then \ if [ $$? -eq 0 ]; then \
$(SWBIN) save >/dev/null; \ $(SWBIN) save >/dev/null; \
else \ else \
$(SWBIN) restore >/dev/null 2>&1; \
echo "$${RESULT}" >&2; \ echo "$${RESULT}" >&2; \
false; \ false; \
fi fi