diff --git a/selftest.sh b/selftest.sh index 011ab8c..4352ec6 100755 --- a/selftest.sh +++ b/selftest.sh @@ -50,8 +50,7 @@ set +e curl --silent http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku | grep -q "^OK counter=0001 low=8d40 high=0f use=00" if [ $? != 0 ]; then - tail /var/log/apache2/* - tail /var/log/auth.log + sudo tail /var/log/apache2/* /var/log/auth.log exit 1 else echo "Success!"