Update mm-scripts.sh
This commit is contained in:
@@ -244,7 +244,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
|
|||||||
if (( ! ${#files} )); then
|
if (( ! ${#files} )); then
|
||||||
echo "$(date) - Plex Media Not Mounted, will try and fix" >> $logfile
|
echo "$(date) - Plex Media Not Mounted, will try and fix" >> $logfile
|
||||||
umount ${PLEX_MOUNT}
|
umount ${PLEX_MOUNT}
|
||||||
|
sleep 2s
|
||||||
mount -a
|
mount -a
|
||||||
|
sleep 2s
|
||||||
|
|
||||||
files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*)
|
files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*)
|
||||||
if (( ! ${#files} )); then
|
if (( ! ${#files} )); then
|
||||||
@@ -271,6 +273,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
|
|||||||
/bin/systemctl stop ${srvc}
|
/bin/systemctl stop ${srvc}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
rm -f ${MMFOLDER}/mm.plexmount.fail
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "${1}" == "start" ] && rm -f ${MMFOLDER}/mm.noservices
|
[ "${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]}restart${idsCL[Default]} --> Restart services"
|
||||||
echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> View VPN and service status"
|
echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> View VPN and service status"
|
||||||
echo
|
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]}clear${idsCL[Default]} --> Clear all tmp files"
|
||||||
echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates"
|
echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user