From 00d5985854e2241f7fe1e35e8245e7d4c4ea03fc Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 6 Nov 2013 15:12:03 +0100 Subject: [PATCH] sudo when looking at logs --- selftest.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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!"