forked from extern/shorewall_code
Call 'ensure_config_path' from 'set_shorewall_dir'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6686 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
379ed95564
commit
6823d5054b
@ -339,13 +339,6 @@ sub fatal_error {
|
||||
die " ERROR: @_$lineinfo\n";
|
||||
}
|
||||
|
||||
#
|
||||
# Set $shorewall_dir
|
||||
#
|
||||
sub set_shorewall_dir( $ ) {
|
||||
$shorewall_dir = shift;
|
||||
}
|
||||
|
||||
#
|
||||
# Set $globals{CONFIG_PATH}
|
||||
#
|
||||
@ -951,6 +944,14 @@ sub ensure_config_path() {
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Set $shorewall_dir
|
||||
#
|
||||
sub set_shorewall_dir( $ ) {
|
||||
$shorewall_dir = shift;
|
||||
ensure_config_path;
|
||||
}
|
||||
|
||||
#
|
||||
# Small functions called by get_configuration. We separate them so profiling is more useful
|
||||
#
|
||||
|
@ -70,8 +70,6 @@ set_config_path( '/etc/shorewall:/usr/share/shorewall' );
|
||||
|
||||
set_shorewall_dir($ARGV[0] || '/etc');
|
||||
|
||||
ensure_config_path;
|
||||
|
||||
our $date = localtime;
|
||||
|
||||
print <<"EOF";
|
||||
|
Loading…
Reference in New Issue
Block a user