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 \(\ ...@@ -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 -e "Uptime: "`uptime | awk '{print $3,$4}' | sed 's/,//'`
echo "" echo ""
echo -e "== Base Application ==" echo -e "== Base Application =="
# virtualmin # virtualmin
...@@ -104,7 +103,14 @@ then ...@@ -104,7 +103,14 @@ then
else else
echo "[_] php" echo "[_] php"
fi fi
echo "" 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 "Last Check: "$(date '+%Y-%m-%d')
echo "" echo ""
\ No newline at end of file \ 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!