autodist cgi: another fix for showlog on secondary host

This commit is contained in:
Silvan Calarco 2012-07-11 20:28:46 +02:00
parent 25cc256ba5
commit 005fe6a6f5

View File

@ -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 "<pre><code>"
if [ "$SHOWLOG" = "current" ]; then
cat $LOGFILE | sed "s|<|\&lt;|g"