Update mm-scripts.sh

This commit is contained in:
2023-04-27 15:32:34 -05:00
parent 27b658cd7b
commit ea1cefb453

View File

@@ -916,7 +916,7 @@ UPDATESERVICE(){
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
OUT=$(ip link | grep "$VPN_INTERFACE") >/dev/null 2>&1
if [ ${#OUT} -ne 0 ] && [ ! -f ${MMFOLDER}/mm.stop ] && [ ! -f ${MMFOLDER}/mm.noservices ] && [[ " ${SERVICES_CHECK[*]} " =~ " ${usrvc} " ]]; then
if [ ${#OUT} -ne 0 ] && [ ! -f ${MMFOLDER}/mm.stop ] && [[ " ${SERVICES_CHECK[*]} " =~ " ${usrvc} " ]] && [ ! -f ${MMFOLDER}/mm.noservices ] && [ ! -f "${MMFOLDER}/mm.plexmount.fail*" ]; then
/bin/systemctl disable ${usrvc} >> ${MMFOLDER}/logs/update.${usrvc}
/bin/systemctl start ${usrvc} >> ${MMFOLDER}/logs/update.${usrvc}
[ "${usrvc}" == "radarr" ] && [[ " ${SERVICES_CHECK[*]} " =~ " radarr3d " ]] && /bin/systemctl start radarr3d >> ${MMFOLDER}/logs/update.${usrvc}