1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2024-11-29 00:24:14 +01:00

do another curl in error

This commit is contained in:
Klas Lindfors 2013-11-06 15:22:00 +01:00
parent ad44603256
commit ee1f4cd825

View File

@ -50,6 +50,7 @@ set +e
curl --silent http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku | grep -q "^OK counter=0001 low=8d40 high=0f use=00" curl --silent http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku | grep -q "^OK counter=0001 low=8d40 high=0f use=00"
if [ $? != 0 ]; then if [ $? != 0 ]; then
curl "http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku"
sudo tail /var/log/apache2/error.log /var/log/apache2/access.log /var/log/auth.log sudo tail /var/log/apache2/error.log /var/log/apache2/access.log /var/log/auth.log
exit 1 exit 1
else else