Update mm-scripts.sh
This commit is contained in:
@@ -308,7 +308,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
|
||||
else
|
||||
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
|
||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
||||
/bin/systemctl stop ${srvc} >/dev/null 2>&1 &
|
||||
@@ -320,14 +320,14 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
|
||||
else
|
||||
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"
|
||||
rm -f ${MMFOLDER}/mm.plexmount.fail
|
||||
rm -f ${MMFOLDER}/mm.plexmount.fail*
|
||||
fi
|
||||
|
||||
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
|
||||
case "$choice" in
|
||||
[Yy])
|
||||
rm -f ${MMFOLDER}/mm.plexmount.fail
|
||||
rm -f ${MMFOLDER}/mm.plexmount.fail*
|
||||
touch ${MMFOLDER}/mm.plexmount.fail2
|
||||
echo
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user