do-test always downloads ipsec.sql
This commit is contained in:
+3
-7
@@ -469,13 +469,8 @@ do
|
|||||||
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $SUBDIR = "sql" ]
|
scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
|
||||||
then
|
$TESTRESULTDIR/${host}.ipsec.sql > /dev/null 2>&1
|
||||||
scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
|
|
||||||
$TESTRESULTDIR/${host}.ipsec.sql > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
touch $TESTRESULTDIR/${host}.ipsec.sql
|
|
||||||
fi
|
|
||||||
|
|
||||||
ssh $HOSTLOGIN ip xfrm policy \
|
ssh $HOSTLOGIN ip xfrm policy \
|
||||||
> $TESTRESULTDIR/${host}.ip.policy 2>/dev/null
|
> $TESTRESULTDIR/${host}.ip.policy 2>/dev/null
|
||||||
@@ -485,6 +480,7 @@ do
|
|||||||
> $TESTRESULTDIR/${host}.ip.route 2>/dev/null
|
> $TESTRESULTDIR/${host}.ip.route 2>/dev/null
|
||||||
ssh $HOSTLOGIN $IPTABLES -v -n -L \
|
ssh $HOSTLOGIN $IPTABLES -v -n -L \
|
||||||
> $TESTRESULTDIR/${host}.iptables 2>/dev/null
|
> $TESTRESULTDIR/${host}.iptables 2>/dev/null
|
||||||
|
chmod a+r $TESTRESULTDIR/*
|
||||||
cat >> $TESTRESULTDIR/index.html <<@EOF
|
cat >> $TESTRESULTDIR/index.html <<@EOF
|
||||||
<h3>$host</h3>
|
<h3>$host</h3>
|
||||||
<table border="0" cellspacing="0" width="600">
|
<table border="0" cellspacing="0" width="600">
|
||||||
|
|||||||
Reference in New Issue
Block a user