Update mm-scripts.sh

This commit is contained in:
2023-04-21 18:56:30 -05:00
parent 4999b3f751
commit f39d452ce0

View File

@@ -308,7 +308,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
else else
echo -e "${idsCL[Green]}Mounted, fixed${idsCL[Default]}" echo -e "${idsCL[Green]}Mounted, fixed${idsCL[Default]}"
rm -f ${MMFOLDER}/mm.plexmount.fail rm -f ${MMFOLDER}/mm.plexmount.fail*
echo "$(date) - Plex Media now mounted, stopping services to restart them" >> $logfile echo "$(date) - Plex Media now mounted, stopping services to restart them" >> $logfile
for srvc in "${SERVICES_CHECK[@]}"; do for srvc in "${SERVICES_CHECK[@]}"; do
/bin/systemctl stop ${srvc} >/dev/null 2>&1 & /bin/systemctl stop ${srvc} >/dev/null 2>&1 &
@@ -320,14 +320,14 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
else else
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}" echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"
rm -f ${MMFOLDER}/mm.plexmount.fail rm -f ${MMFOLDER}/mm.plexmount.fail*
fi fi
if [ -f ${MMFOLDER}/mm.plexmount.fail ] && [ "${1}" == "start" ]; then if [ -f ${MMFOLDER}/mm.plexmount.fail ] && [ "${1}" == "start" ]; then
read -n 1 -p "Would you like to start services without Plex Media being mounted? (y/N): " choice read -n 1 -p "Would you like to start services without Plex Media being mounted? (y/N): " choice
case "$choice" in case "$choice" in
[Yy]) [Yy])
rm -f ${MMFOLDER}/mm.plexmount.fail rm -f ${MMFOLDER}/mm.plexmount.fail*
touch ${MMFOLDER}/mm.plexmount.fail2 touch ${MMFOLDER}/mm.plexmount.fail2
echo echo
;; ;;