Update mm-scripts.sh
This commit is contained in:
@@ -409,12 +409,12 @@ MMSTATUS(){
|
|||||||
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
|
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
|
||||||
|
|
||||||
if [ "$(systemctl is-active ${srvc})" != "active" ] && [ "${srvc}" != "wireguard" ]; then
|
if [ "$(systemctl is-active ${srvc})" != "active" ] && [ "${srvc}" != "wireguard" ]; then
|
||||||
if [ ! -f ${MMFOLDER}/mm.noservices ] && [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
if [ ! -f ${MMFOLDER}/mm.noservices ]; then
|
||||||
echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
|
||||||
elif [ ! -f ${MMFOLDER}/mm.noservices ]; then
|
|
||||||
echo -e "${idsCL[Red]}Skipping, started wtih VPN only${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Skipping, started wtih VPN only${idsCL[Default]}"
|
||||||
elif [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
elif [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
||||||
echo -e "${idsCL[Red]}Skipping, Plex Media not mounted${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Skipping, Plex Media not mounted${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "${srvc}" == "wireguard" ] && [ "$(/sbin/ip link | grep $VPN_INTERFACE)" == "" ]; then
|
elif [ "${srvc}" == "wireguard" ] && [ "$(/sbin/ip link | grep $VPN_INTERFACE)" == "" ]; then
|
||||||
@@ -487,7 +487,6 @@ MMSTATUS(){
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user