优化请求日志
This commit is contained in:
1 parent
3e7ccc78bd
commit
c96234ccbb
1 file changed
+7
-4
@@ -218,6 +218,9 @@ arDdnsCheck() {
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo $hostIp
|
echo $hostIp
|
||||||
return 1
|
return 1
|
||||||
|
else
|
||||||
|
echo "Record Type: $recordType"
|
||||||
|
echo "Host Ip: $hostIp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ddnsIds=$(arDdnsIds $recordType $1 $2)
|
ddnsIds=$(arDdnsIds $recordType $1 $2)
|
||||||
@@ -225,6 +228,8 @@ arDdnsCheck() {
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo $ddnsIds
|
echo $ddnsIds
|
||||||
return 1
|
return 1
|
||||||
|
else
|
||||||
|
echo "Domain Ids: $ddnsIds"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking Domain: $2.$1"
|
echo "Checking Domain: $2.$1"
|
||||||
@@ -233,12 +238,10 @@ arDdnsCheck() {
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo $lastIp
|
echo $lastIp
|
||||||
return 1
|
return 1
|
||||||
|
else
|
||||||
|
echo "Last Ip: $lastIp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Domain Ids: $ddnsIds"
|
|
||||||
echo "Host Ip: $hostIp"
|
|
||||||
echo "Last Ip: $lastIp"
|
|
||||||
|
|
||||||
if [ "$lastIp" == "$hostIp" ]; then
|
if [ "$lastIp" == "$hostIp" ]; then
|
||||||
echo "Last Ip is the same as host Ip"
|
echo "Last Ip is the same as host Ip"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in new issue
Block a user