Fix verbosity control and tracing control in the 'reload' command

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4127 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-06-16 23:04:12 +00:00
parent 50fb04b331
commit 8c6e0a4391

View File

@ -1298,7 +1298,14 @@ restore_command() {
#
reload_command()
{
shorewall compile -e $1 $1/firewall && scp $1/firewall root@${2}:/var/lib/shorewall-lite/ && ssh root@${2} '/sbin/shorewall-lite restart' && progress_message3 "System $2 reloaded"
local verbose=$(make_verbose)
shorewall $debugging $verbose compile -e $1 $1/firewall && \
echo "Copying firewall to ${2}/var/lib/shorewall-lite/..." && \
scp $1/firewall root@${2}:/var/lib/shorewall-lite/ && \
echo "Copy complete" && \
ssh root@${2} "/sbin/shorewall-lite $debugging $verbose restart" && \
progress_message3 "System $2 reloaded"
}
#
# Help information