From 005fe6a6f5f034fc7878d2746904e12a54192d49 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 11 Jul 2012 20:28:46 +0200 Subject: [PATCH] autodist cgi: another fix for showlog on secondary host --- autodist-cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autodist-cgi b/autodist-cgi index b1452fc..adb423d 100755 --- a/autodist-cgi +++ b/autodist-cgi @@ -62,9 +62,8 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do else continue fi - - if [ "$SHOWLOG" -a "$NUM" = "$i" ]; then - if [ "$SECONDARY" = "$AS_SECONDARY" ]; then + if [ "$SHOWLOG" ]; then + if [ "$SECONDARY" = "$AS_SECONDARY" -a "$NUM" = "$i" ]; then echo "
"
          if [ "$SHOWLOG" = "current" ]; then
             cat $LOGFILE | sed "s|<|\<|g"