Update mm-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user