Commit c9fd4939 by irul

Menambahkan informasi situs virtualhost yg terdaftar di apache

1 parent 2a273f4d
......@@ -31,7 +31,6 @@ echo -e "Default Gateway: "`ip route show | sed 's/\(\S\+\s\+\)\?default via \(\
echo -e "Uptime: "`uptime | awk '{print $3,$4}' | sed 's/,//'`
echo ""
echo -e "== Base Application =="
# virtualmin
......@@ -104,7 +103,14 @@ then
else
echo "[_] php"
fi
echo ""
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}'`
echo ""
fi
echo "Last Check: "$(date '+%Y-%m-%d')
echo ""
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!