mirror of
https://gitlab.com/shorewall/code.git
synced 2025-04-27 04:39:59 +02:00
Stupid error in placement of time check
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4474 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b8a9da7e4b
commit
a8be4a0b55
@ -97,14 +97,16 @@ DIR=/etc/shorewall
|
|||||||
SW_PATH=/sbin/shorewall
|
SW_PATH=/sbin/shorewall
|
||||||
|
|
||||||
PATH=$PATH:
|
PATH=$PATH:
|
||||||
for HOST; do
|
|
||||||
shoregen $HOST
|
|
||||||
rsync $RSYNC_ARGS SPOOL/$HOST/ $USER@$HOST:$DIR/
|
|
||||||
if [ "$TIME" -gt 0 ]; then
|
if [ "$TIME" -gt 0 ]; then
|
||||||
TIME=time
|
TIME="time"
|
||||||
else
|
else
|
||||||
TIME=""
|
TIME=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for HOST; do
|
||||||
|
shoregen $HOST
|
||||||
|
rsync $RSYNC_ARGS SPOOL/$HOST/ $USER@$HOST:$DIR/
|
||||||
if [ "$CHECK" -gt 0 ]; then
|
if [ "$CHECK" -gt 0 ]; then
|
||||||
$TIME ssh -l $USER -t $HOST $SW_PATH check
|
$TIME ssh -l $USER -t $HOST $SW_PATH check
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user