Commit 9b07e6c6 by irul

Update server_info.sh

1 parent 030ae15f
...@@ -36,10 +36,10 @@ echo -e "== Base Application ==" ...@@ -36,10 +36,10 @@ echo -e "== Base Application =="
# virtualmin # virtualmin
if dpkg --get-selections | grep -E '(^|\s)virtualmin-core($|\s)' &> /dev/null if dpkg --get-selections | grep -E '(^|\s)virtualmin-core($|\s)' &> /dev/null
then then
echo "[x] virtualmin-core"$(dpkg -l virtualmin-core | grep ^ii | awk '{print $3}' | cut -f1 -d-) echo "[x] virtualmin-core-"$(dpkg -l virtualmin-core | grep ^ii | awk '{print $3}' | cut -f1 -d-)
elif dpkg --get-selections | grep -E '(^|\s)virtualmin-custom($|\s)' &> /dev/null elif dpkg --get-selections | grep -E '(^|\s)virtualmin-custom($|\s)' &> /dev/null
then then
echo "[x] virtualmin-custom"$(dpkg -l virtualmin-custom | grep ^ii | awk '{print $3}' | cut -f1 -d-) echo "[x] virtualmin-custom-"$(dpkg -l virtualmin-custom | grep ^ii | awk '{print $3}' | cut -f1 -d-)
else else
echo "[_] virtualmin" echo "[_] virtualmin"
fi fi
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!