Pārlūkot izejas kodu

units/ttlsxx0001: connect with openssl and check if it was accepted

Daniel-Constantin Mierla 5 gadi atpakaļ
vecāks
revīzija
a1cae41717
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      units/ttlsxx0001/ttlsxx0001.sh

+ 9 - 0
units/ttlsxx0001/ttlsxx0001.sh

@@ -13,5 +13,14 @@ kill_pidfile ${KAMPID}
 if [ ! "$ret" -eq 0 ] ; then
     exit $ret
 fi
+sleep 1
+echo
+echo "--- grep output"
+echo
+grep "TLS accept successful" /tmp/kamailio-ttlsxx0001.log
+ret=$?
+if [ ! "$ret" -eq 0 ] ; then
+    exit 1
+fi
 
 exit $ret