Update mm-scripts.sh

This commit is contained in:
2023-03-25 09:16:31 -05:00
parent 265944f236
commit efeb230c33

View File

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