Update mm-scripts.sh

This commit is contained in:
2023-02-20 22:10:56 -06:00
parent c642ad6174
commit 67c62fc829

View File

@@ -344,8 +344,15 @@ MMSTATUS(){
echo ""
fi
else
if [ "$(systemctl is-active ${srvc})" != "active" ]; then
if [ "$(systemctl is-active ${srvc})" != "active" ] && [ "${srvc}" != "wireguard" ]; then
echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
#OUT=$(ip link | grep "$VPN_INTERFACE")
#if [ ${#OUT} = 0 ]; then
elif [ "${srvc}" == "wireguard" ] && [ "$(ip link | grep $VPN_INTERFACE)" == "" ]; then
echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
else
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then