mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Process shorewall.conf correctly during [re]load
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5914 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
863a33ed0a
commit
7036b48573
@ -1103,12 +1103,7 @@ reload_command() # $* = original arguments less the command.
|
|||||||
|
|
||||||
if [ -n "$getcaps" ]; then
|
if [ -n "$getcaps" ]; then
|
||||||
if [ -f $directory/shorewall.conf ]; then
|
if [ -f $directory/shorewall.conf ]; then
|
||||||
MODULESDIR=$(grep '^\s*MODULESDIR=' $directory/shorewall.conf | tail -n 1)
|
. $directory/shorewall.conf
|
||||||
MODULESDIR=${MODULESDIR#*=}
|
|
||||||
IPTABLES=$(grep '^\s*MODULE_SUFFIX=' $directory/shorewall.conf | tail -n 1)
|
|
||||||
IPTABLES=${MODULE_SUFFIX#*=}
|
|
||||||
IPTABLES=$(grep '^\s*IPTABLES=' $directory/shorewall.conf | tail -n 1)
|
|
||||||
IPTABLES=${IPTABLES#*=}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
progress_message "Getting Capabilities on system $system..."
|
progress_message "Getting Capabilities on system $system..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user