Update mm-scripts.sh

This commit is contained in:
2023-02-26 22:26:17 -06:00
parent 3bfe872fe3
commit f6734a35db

View File

@@ -244,7 +244,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
if (( ! ${#files} )); then
echo "$(date) - Plex Media Not Mounted, will try and fix" >> $logfile
umount ${PLEX_MOUNT}
sleep 2s
mount -a
sleep 2s
files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*)
if (( ! ${#files} )); then
@@ -271,6 +273,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
/bin/systemctl stop ${srvc}
done
fi
else
rm -f ${MMFOLDER}/mm.plexmount.fail
fi
[ "${1}" == "start" ] && rm -f ${MMFOLDER}/mm.noservices
@@ -563,7 +567,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
echo -e " ${idsCL[Yellow]}restart${idsCL[Default]} --> Restart services"
echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> View VPN and service status"
echo
echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job to maintain VPN and services, run */1 min)"
echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job for maintaining VPN & Media-Services (run */1 min)"
echo -e " ${idsCL[Yellow]}clear${idsCL[Default]} --> Clear all tmp files"
echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates"
echo ""