Commit ff87c02b by irul

Update server_info.sh

1 parent 5aa8c946
......@@ -105,13 +105,13 @@ else
fi
echo ""
if dpkg --get-selections | grep -E '(^|\s)apache2($|\s)' &> /dev/null
then
echo "== Sites Available ==";
if dpkg --get-selections | grep -E '(^|\s)apache2($|\s)' &> /dev/null ; then
#echo "== Sites Available ==";
#echo -e `apache2ctl -S 2>&1 | grep "namevhost" | awk '{print "(" NR ") " $4}'`
SITES=$(echo `apache2ctl -S 2>&1 | grep "namevhost" | awk '{print $4}'`)
#echo "Sites: $SITES";
if [ ! -z "$SITES"] ; then
echo "== Sites Available ==";
SITES_CNT=1
for SITE in $SITES
......@@ -123,7 +123,8 @@ then
fi
SITES_CNT=$[$SITES_CNT +1]
done
echo "";
echo ""
fi
fi
echo "Last Check: "$(date '+%Y-%m-%d %H:%M')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!