mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
No longer process the local shorewall.conf when compiling from a directory
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4f2a4c0c6c
commit
092c2ef8f7
@ -3139,7 +3139,7 @@ shorewall_cli() {
|
||||
g_shorewalldir=
|
||||
|
||||
VERBOSE=
|
||||
VERBOSITY=
|
||||
VERBOSITY=1
|
||||
|
||||
[ -n "$g_lite" ] || . ${g_basedir}/lib.cli-std
|
||||
|
||||
|
@ -34,8 +34,6 @@ get_config() {
|
||||
|
||||
ensure_config_path
|
||||
|
||||
|
||||
|
||||
if [ "$1" = Yes ]; then
|
||||
params=$(find_file params)
|
||||
|
||||
@ -378,7 +376,7 @@ compiler() {
|
||||
#
|
||||
# Get the config from $g_shorewalldir
|
||||
#
|
||||
[ -n "$g_shorewalldir" -a "$g_shorewalldir" != ${g_confdir} ] && get_config
|
||||
get_config Yes
|
||||
|
||||
case $COMMAND in
|
||||
*start|try|refresh)
|
||||
@ -1648,7 +1646,6 @@ compiler_command() {
|
||||
|
||||
case $COMMAND in
|
||||
compile)
|
||||
get_config Yes
|
||||
shift
|
||||
compile_command $@
|
||||
;;
|
||||
@ -1658,7 +1655,6 @@ compiler_command() {
|
||||
refresh_command $@
|
||||
;;
|
||||
check)
|
||||
get_config Yes
|
||||
shift
|
||||
check_command $@
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user