forked from extern/shorewall_code
Fix last patch
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4822 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
88fac3769f
commit
36eafbf6e6
@ -734,7 +734,7 @@ reload_command() # $* = original arguments less the command.
|
||||
{
|
||||
local verbose=$(make_verbose) file= capabilities= finished=0 saveit= result directory system getcaps=
|
||||
|
||||
[ -n "$LITEDIR" ] || { echo " ERROR: LITEDIR not defined in ${SHAREDIR}/configpath" >&2; exit 2; }
|
||||
[ -n "$LITEDIR" ] || fatal_error "ERROR: LITEDIR not defined in ${SHAREDIR}/configpath"
|
||||
|
||||
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||
option=$1
|
||||
@ -783,13 +783,17 @@ reload_command() # $* = original arguments less the command.
|
||||
;;
|
||||
esac
|
||||
|
||||
capabilities=$(find_file capabilities)
|
||||
if [ -z "$getcaps" ]; then
|
||||
SHOREWALL_DIR=$directory
|
||||
capabilities=$(find_file capabilities)
|
||||
[ -f $capabilities ] || getcaps=Yes
|
||||
fi
|
||||
|
||||
if [ -n "$getcaps" -o ! -f $capabilities ]; then
|
||||
if [ -n "$getcaps" ]; then
|
||||
progress_message "Getting Capabilities on system $system..."
|
||||
if ! ssh root@${system} "/sbin/shorewall-lite show -f capabilities > ${LITEDIR}/capabilities" || \
|
||||
! scp root@$system:${LITEDIR}/capabilities $directory; then
|
||||
echo " ERROR: Capturing capabilities on system $system failed" >&2 && exit 2
|
||||
fatal_error "ERROR: Capturing capabilities on system $system failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -835,7 +839,7 @@ export_command() # $* = original arguments less the command.
|
||||
option=
|
||||
;;
|
||||
*)
|
||||
usage 1
|
||||
fatal_error "Unrecognized option \"$option\""
|
||||
;;
|
||||
esac
|
||||
done
|
||||
@ -857,7 +861,7 @@ export_command() # $* = original arguments less the command.
|
||||
target=$2
|
||||
;;
|
||||
*)
|
||||
usage 1
|
||||
fatal_error "ERROR: Invalid command syntax (\"shorewall help export\" for help)"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -962,8 +966,6 @@ while [ $finished -eq 0 ]; do
|
||||
-*)
|
||||
option=${option#-}
|
||||
|
||||
[ -z "$option" ] && usage 1
|
||||
|
||||
while [ -n "$option" ]; do
|
||||
case $option in
|
||||
c)
|
||||
|
Loading…
Reference in New Issue
Block a user