mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
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=
|
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
|
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||||
option=$1
|
option=$1
|
||||||
@ -783,13 +783,17 @@ reload_command() # $* = original arguments less the command.
|
|||||||
;;
|
;;
|
||||||
esac
|
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..."
|
progress_message "Getting Capabilities on system $system..."
|
||||||
if ! ssh root@${system} "/sbin/shorewall-lite show -f capabilities > ${LITEDIR}/capabilities" || \
|
if ! ssh root@${system} "/sbin/shorewall-lite show -f capabilities > ${LITEDIR}/capabilities" || \
|
||||||
! scp root@$system:${LITEDIR}/capabilities $directory; then
|
! 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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -835,7 +839,7 @@ export_command() # $* = original arguments less the command.
|
|||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
usage 1
|
fatal_error "Unrecognized option \"$option\""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -857,7 +861,7 @@ export_command() # $* = original arguments less the command.
|
|||||||
target=$2
|
target=$2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
usage 1
|
fatal_error "ERROR: Invalid command syntax (\"shorewall help export\" for help)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -962,8 +966,6 @@ while [ $finished -eq 0 ]; do
|
|||||||
-*)
|
-*)
|
||||||
option=${option#-}
|
option=${option#-}
|
||||||
|
|
||||||
[ -z "$option" ] && usage 1
|
|
||||||
|
|
||||||
while [ -n "$option" ]; do
|
while [ -n "$option" ]; do
|
||||||
case $option in
|
case $option in
|
||||||
c)
|
c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user