mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
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:
parent
50fb04b331
commit
8c6e0a4391
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user